Qt 6.11 is out! See what's new in the release
blog
Control the position of where the submenu is displayed.
Mobile and Embedded
2
Posts
1
Posters
2.5k
Views
1
Watching
-
I am using QMenu to create a pop up menu in a limited screen environment 160x100.
I need to have the submenu displayed in the same screen location as the parent menu.
Essentially, on top of the parent menu instead of to the right and starting at the
menu item.So what would be the best way to control the placement of a submenu.
I have tried manipulating the submenu from the aboutToShow event but was unsucessful with what I tried. I have also tried setting the minimumSize and maximum size to the 160x100 and setting the size policy but was unsuccessful as well.