Toolbar and submenu of a submenu of a submenu
-
wrote on 8 Sept 2016, 22:10 last edited by
I have a Toolbar that I would like to have a series of submenus that originate from the original Toolbar.
I've found sample code that lets me create one submenu (popup) from the original Toolbar, but I'd like to have one that cascades more than just singular submenu example that I've found.I like to cascade the submenu to at least 3 levels, possibly 4.
Is this possible? If so, how? Even better... pointer to an example?
Thanks!
Michael
-
Hi and welcome to devnet,
Yes you can.
You can chain QMenu for as far as you want. However deep levels of menus doesn't necessarily make it friendly.
Hope it helps
-
wrote on 9 Sept 2016, 21:22 last edited by
Understood. that more levels aren't going to make it more useful.
My point is that at the (arbitrary) bottom of such a level I would like to place a button
on that menu location (in that overall toolBar). -
I'm not sure I'm following you. Could you share a picture of what you would like to achieve ?
-
I'm not sure I'm following you. Could you share a picture of what you would like to achieve ?
wrote on 9 Sept 2016, 22:22 last edited by@SGaist 
Something like this....
-
The upload feature of the forum is currently broken. Can you use an image sharing site ?
-
wrote on 9 Sept 2016, 22:50 last edited by
Seems to have worked this time. Have to resize the image to something below a threshold (1MB?)
-
Seems to have worked this time. Have to resize the image to something below a threshold (1MB?)
@Michael-J-North said in Toolbar and submenu of a submenu of a submenu:
Seems to have worked this time.
It doesn't. Only you can see the image, we can't.
-
The upload itself works and you can see it but not the other users.
-
wrote on 9 Sept 2016, 22:58 last edited by
@SGaist Have a site you recommend?
-
wrote on 9 Sept 2016, 23:06 last edited by
@SGaist I found a site to post images..... yeah.
-
If I understand correctly, you need QToolBar's with QToolButtons with a menu ? Correct ?
-
wrote on 11 Sept 2016, 00:43 last edited by
@SGaist Correct
-
So you just have to add a QToolButton to your QToolBar where you have set a QMenu on with setMenu.
-
wrote on 13 Sept 2016, 01:44 last edited by
Thanks! Have the whole set of this part of the UI working!
6/15