Unsolved Exiting QComboBox and reading content
-
Hi,
I have a few combo boxes. To read their content I use currentIndexChanged signal.connect (day_Combo,SIGNAL(currentIndexChanged(int)),this,SLOT(addDay(int)));
It works only when I press Enter. If I use the mouse or TAB to exit the combo box, the content is not read.
What should I do to read the content when exiting with TAB or a mouse click?
Thank you. -
Does the current selected item change if you leave the combo box using tab or mouse?
Usually you have to select another entry in the combobox either via mouse or moving the selection and pressing enter.
If you just click in the combobox and then click somethere else then current index does not change and no signal is emitted. -
@jsulm
It does change.... -
Hi,
Isn't QComboBox::activated what you are looking for ?