[QComboBox] avoid Enter keypress to select empty combo entry
Hi
Following Wysota advice and my combo preselection problem,
I added an empty entry to my comboboxes.
I now have the side effect that typing enter (to trigger the dialog default button) selects the empty entry.
Should I filter the event or is there an easier way ?
Thnks in advance.
Re: [QComboBox] avoid Enter keypress to select empty combo entry
We'd have to see your dialog. It shouldn't work that way as you describe, can you explain exactly what happens? Especially, which widget has focus when you press enter?
Re: [QComboBox] avoid Enter keypress to select empty combo entry (solved-no error)
You are right : it does not behave the way I described.
It was a mistake of mine :o in handling the cancel button.