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