olidem
18th May 2012, 08:18
Hi there,
i've got a QPushButton with a menu (setMenu()).
That works fine, but:
Currently, when opening the menu, it is left-aligned with the button.
So, the menu is shown below the button and its left border has the same x-coodinate as the button's left border.
I would like to right-align the menu, so that the menu' and button's right border have the same x-coordinate.
I tried the property subcontrol-position in QPushButton::menu-indicator, but it does not help.
Thanks for your help in advance.
Olli
i've got a QPushButton with a menu (setMenu()).
That works fine, but:
Currently, when opening the menu, it is left-aligned with the button.
So, the menu is shown below the button and its left border has the same x-coodinate as the button's left border.
I would like to right-align the menu, so that the menu' and button's right border have the same x-coordinate.
I tried the property subcontrol-position in QPushButton::menu-indicator, but it does not help.
Thanks for your help in advance.
Olli