QComboBox - strange behavior after clear()
-
If I have a QComboBox that where I add 100 items in code, the aren't all displayed on screen and I see the arrows on the top and bottom of the popup (for navigating up and down the items).
This is all as expected.If I know clear the QComboBox and add only a few items (even 1), the arrows are still displayed.
If I populate the QComboBox directly with the few items, the arrows are not displayed.
Is there some sort of "reset" or invalidate function I should send to the QComboBox? -
Sounds like a strange usecase. Which user want's to select from 100 choices? 10 is usually the limit where user-friendliness ends. Maybe you are looking for a 'QCompleter'?
-
well it was an example so you could understand the point...
even if you use 50 and go to 2, it's the same.the issue is that I have some dynamically generated choices inside a combobox - when I go from many to few, I get this behavior.
-
No question about, that it sounds like another bug.
-
so, then please create a "Jira issue":http://bugreports.qt.nokia.com/secure/Dashboard.jspa
-
I just did - http://bugreports.qt.nokia.com/browse/QTBUG-18788