Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Toolbar and submenu of a submenu of a submenu
QtWS25 Last Chance

Toolbar and submenu of a submenu of a submenu

Scheduled Pinned Locked Moved Solved General and Desktop
15 Posts 3 Posters 3.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Michael J North
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        Michael J North
        wrote on last edited by
        #3

        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).

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I'm not sure I'm following you. Could you share a picture of what you would like to achieve ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            I'm not sure I'm following you. Could you share a picture of what you would like to achieve ?

            M Offline
            M Offline
            Michael J North
            wrote on last edited by
            #5

            @SGaist ![0_1473459701909_IMG_2549.JPG](Uploading 100%)

            Something like this....

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              The upload feature of the forum is currently broken. Can you use an image sharing site ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              M 1 Reply Last reply
              0
              • SGaistS SGaist

                The upload feature of the forum is currently broken. Can you use an image sharing site ?

                M Offline
                M Offline
                Michael J North
                wrote on last edited by
                #7

                @SGaist 0_1473461347764_example.jpg

                Seems to have worked this time. Have to resize the image to something below a threshold (1MB?)

                kshegunovK 1 Reply Last reply
                0
                • M Michael J North

                  @SGaist 0_1473461347764_example.jpg

                  Seems to have worked this time. Have to resize the image to something below a threshold (1MB?)

                  kshegunovK Offline
                  kshegunovK Offline
                  kshegunov
                  Moderators
                  wrote on last edited by
                  #8

                  @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.

                  Read and abide by the Qt Code of Conduct

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    The upload itself works and you can see it but not the other users.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    M 2 Replies Last reply
                    0
                    • SGaistS SGaist

                      The upload itself works and you can see it but not the other users.

                      M Offline
                      M Offline
                      Michael J North
                      wrote on last edited by
                      #10

                      @SGaist Have a site you recommend?

                      1 Reply Last reply
                      0
                      • SGaistS SGaist

                        The upload itself works and you can see it but not the other users.

                        M Offline
                        M Offline
                        Michael J North
                        wrote on last edited by
                        #11

                        @SGaist I found a site to post images..... yeah.

                        https://postimg.org/image/l1kl7ehd7

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          If I understand correctly, you need QToolBar's with QToolButtons with a menu ? Correct ?

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          M 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            If I understand correctly, you need QToolBar's with QToolButtons with a menu ? Correct ?

                            M Offline
                            M Offline
                            Michael J North
                            wrote on last edited by
                            #13

                            @SGaist Correct

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              So you just have to add a QToolButton to your QToolBar where you have set a QMenu on with setMenu.

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              1 Reply Last reply
                              0
                              • M Offline
                                M Offline
                                Michael J North
                                wrote on last edited by
                                #15

                                Thanks! Have the whole set of this part of the UI working!

                                1 Reply Last reply
                                0

                                • Login

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved