Unsolved setWhatsThis on QComboBox
-
Hi,
I was trying to use setWhatsThis function with QComboBox,its not working. But it is working with QLineEdit and other QWidgets. I have to implement it in Qt4.1.4 . -
@Amrita_S
what are you trying to do ?Show me what you have tried? -
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)); -
-
I mentioned in my question that Qt4.1 not newer versions
and issue is that its not working specially for combo box -
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
-
@VRonin Qt::ToolTipRole is working but WhatsThisRole is not working and My preference is what's this for whole combo box