If you extend your addItem calls to contain the actual value
then you can get the value again in the slotQt Code:
To copy to clipboard, switch view to plain text mode
Qt Code:
void YourClass::slotCurrentIndexChanged(int index) { int value = comboBox->itemData(index).toInt(); }To copy to clipboard, switch view to plain text mode
Cheers,
_





Reply With Quote

Bookmarks