8 QComboBox(parent), role(Qt::UserRole)
15 return itemData(currentIndex(),
role);
QValueComboBox(QWidget *parent=nullptr)
void handleSelectionChanged(int idx)
void setValue(const QVariant &value)
void setRole(int role)
Specify model role to use as ordinal value (defaults to Qt::UserRole)