Not really. I created the QComboBox in Designer. I checked the properties, there is nothing related to how the combo box is updated. Other than that, I just take the reference from ui and connect the combo to something:
connect(ui.
portComboBox,
SIGNAL(currentIndexChanged
(const QString)),
&robotInterface,
SLOT(setPortName
(const QString)));
connect(ui.portComboBox, SIGNAL(currentIndexChanged(const QString)), &robotInterface, SLOT(setPortName(const QString)));
To copy to clipboard, switch view to plain text mode
That's how I see that the selection was successfully made.
Bookmarks