【发布时间】:2019-02-04 01:24:10
【问题描述】:
我遇到了这样的错误,
error: ‘class QComboBox’ has no member named ‘setCurrentText’; did you mean ‘currentText’?
x_cn_num->setCurrentText(QApplication::translate("MainWindow", "0", 0, QApplication::UnicodeUTF8));
^~~~~~~~~~~~~~
但是,我检查了official documentation,“setCurrentText”完全是 QComboBox 的兼容成员。
如果你知道真正的原因和解决办法,请给我一些线索。
【问题讨论】: