Hi.
I have a QComboBox on my gui that I use to select a string from a given set of options. When I click on it the dropdown appears, I make my choice and then the dropdown closes again, but it's still the default value that is displayed. The combo box is connected to a slot, so I know that the choice was made correctly. Only when I move the mouse over the combo it finally gets updated and shows the last choice made.
I also tried connecting it to its own update slot
connect(ui.
portComboBox,
SIGNAL(currentIndexChanged
(const QString)), ui.
portComboBox,
SLOT(update
()));
connect(ui.portComboBox, SIGNAL(currentIndexChanged(const QString)), ui.portComboBox, SLOT(update()));
To copy to clipboard, switch view to plain text mode
to no avail.
Should I program something that automatically moves the mouse over the combo when a choice was made or what?
Bookmarks