QComboBox Popup Placement
Solved
General and Desktop
-
Hello All,
I'm wondering if there is a way to always get the QComboBox to extend down.Right now if I've got a selection of the last item on the list the popup extends above the control so that that last item on the list is scrolled to the control area.
Thanks,
WTB -
Hi,
You would likely have to create a proxy style and customize the drawing of the combo box.
-
@WBest
QComboBox has a virtual method showPopup() where the positioning is calculated.
The only way to achieve what you want is to override this method and position the popup yourself.
You should get the toplevel container/window withview()->window()
-