Solved Toolbar and submenu of a submenu of a submenu
-
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
-
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 ?
-
@SGaist ![0_1473459701909_IMG_2549.JPG](Uploading 100%)
Something like this....
-
The upload feature of the forum is currently broken. Can you use an image sharing site ?
-
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.
-
@SGaist Have a site you recommend?
-
@SGaist I found a site to post images..... yeah.
-
If I understand correctly, you need QToolBar's with QToolButtons with a menu ? Correct ?
-
@SGaist Correct
-
So you just have to add a QToolButton to your QToolBar where you have set a QMenu on with setMenu.
-
Thanks! Have the whole set of this part of the UI working!