Hi, I am trying to compile a qt5 app for slow scan tv called qsstv.
http://users.telenet.be/on4qz/qsstv/index.html.
I ran into an error where it says:
Code:
./ui_txwidget.h:834:33: error: ‘class QComboBox’ has no member named ‘setCurrentText’; did you mean ‘setCurrentIndex’?
drmTxBandwidthComboBox->setCurrentText(QApplication::translate("txWidget", "2.2 kHz", 0, QApplication::UnicodeUTF8));
I encountered 4 of these lines, and after just commenting them out, the app compiles fine. However, I would like to correct the error, because 2.2 kHz is probably an important initial setting, but am not familiar enough with qt, and was wondering if someone could give me the right syntax.
I tried changing setCurrentText to setCurrentIndex, but then got errors about the argument list being of the wrong type.
So, if you would please, what would be the correct syntax to change
Code:
drmTxBandwidthComboBox->setCurrentText(QApplication::translate("txWidget", "2.2 kHz", 0, QApplication::UnicodeUTF8));
to use setCurrentIndex?
Thank You,
zentara