August 22, 2011

ibvsleepy ibvsleepy
Lab Rat
2 posts

control the position of where the submenu is displayed.

 

I am using QMenu to create a pop up menu in a limited screen environment 160×100.

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 160×100 and setting the size policy but was unsuccessful as well.

1 reply

August 25, 2011

ibvsleepy ibvsleepy
Lab Rat
2 posts

I found a way. May not be the best but it works. Override the paintEvent and used move to get it where I needed it.

 
  ‹‹ [solved] using QSettings      Telephony Call Back Service Plugin ››

You must log in to post a reply. Not a member yet? Register here!