Changing the size of the QComboBox's List
-
Hello All-
I've loaded up a combobox with several items, but it doesn't display all the items at once. There is a scroll bar present. How do I make the combobox display the entire list at once. I've browsed the settings, and I'm not for sure what I have set.
-Arukas
-
If you are editing via form editor, you have option maxVisibleItems ( property editor -> near bottom in the green area).
Or, you can call function QComboBox::setMaxvisibleItems(). -
I use the function call, and it worked like a charm.