Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
ComboBox Max Amount of Items?
vezprog last edited by
I am stuck in a pickle here. I have a QComboBox that has quite a few items (say 17-20 items).
If the screen resolution on the Linux system is 1024x768, and the combo box expands past the screen, does the user have no ability to see the items on the end of the drop down?
Can there be a scroll built in to the combo box drop down if the screen is too small?
(I DONT want to use a spin box)
Thanks in advance!
veeeee_d last edited by
A scroll bar appears when there are enough elements.
andre last edited by
Why don't you just try to see how it works? You can easily experiment with this using Designer. Just add a whole lot of items to a combobox, and use the preview to see the result. Also take a look at the maxVisibleItems property of QComboBox.
fluca1978 last edited by
Not sure if you are reporting a problem or thinking about what could be a problem. On Linux it usually works with a scrollbar on the combo to scroll to other items. Some themes report a down arrow at the end of the combo to allow the user to scroll.