setWhatsThis on QComboBox
-
QComboBox *ddEOFMode;
ddEOFMode = new QComboBox(groupBox2_2);
ddEOFMode->addItem(QApplication::translate("fConfig", "added item1", 0, QApplication::UnicodeUTF8));
ddEOFMode->addItem(QApplication::translate("fConfig", "added item 2", 0, QApplication::UnicodeUTF8));
ddEOFMode->addItem(QApplication::translate("fConfig", "added item3", 0, QApplication::UnicodeUTF8));
ddEOFMode->setWhatsThis(QApplication::translate("fConfig", "whatsthis for ddeof", 0, QApplication::UnicodeUTF8)); -
Do you want to set the what's this for the whole combobox or of an item of the combo list?
in the second case you can use http://doc.qt.io/qt-4.8/qcombobox.html#setItemData with Qt::WhatsThisRole as role