Show tooltip when the user selects item in QComboBox
Since I did not find an example, I'll post this here.
The way to do this on Python (PyQt5) is:
from PyQt5 import QtGui, QtCore
...
combobox.setItemData(0, "This is a tooltip for item[0]",QtCore.Qt.ToolTipRole);
Are you looking for this? For example:
ui->comboBox->setItemData(0, "This is a tooltip for item[0]", Qt::ToolTipRole);