PDA

View Full Version : Show QComboBox list while editing



radix07
14th October 2011, 16:52
I have QCombobox which is loaded with a sorted QStringList and is set to be editable with autocomplete to find an item in the combobox. All this stuff works great, but I would like to keep the dropdown list visible while typing to ease finding items in the list, is there way to do this cleanly? I suppose I could capture every keypress and activate the drop down list, but that seems messy. I also couldn't find a method/way to active the drop list other than playing with mouse events...

Any ideas on how to approach this?

Thanks.

Added after 14 minutes:

Apologize for the simple question. Got the popup list to work with showPopup on a text edit event. Must have missed that. Just need to handle to focus change issue...