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. custom button menu list?

custom button menu list?

Scheduled Pinned Locked Moved Solved General and Desktop
7 Posts 2 Posters 940 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
    minjunkim
    wrote on last edited by
    #1

    hi,

    i want to this..

    0_1539577038826_menu.png

    Is there any ideas?

    If I develop it as a custom, which widget is best?

    I can't use qt quick2 because of environmental factors.

    thank you for reading

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

      Hi
      Is each of the rects a button ?
      do you need scrolling in case more buttons than can fit on screen?

      M 1 Reply Last reply
      1
      • mrjjM mrjj

        Hi
        Is each of the rects a button ?
        do you need scrolling in case more buttons than can fit on screen?

        M Offline
        M Offline
        minjunkim
        wrote on last edited by
        #3

        @mrjj

        Hi
        yes, each of the rects is a button and i don't need any scrolling

        mrjjM 1 Reply Last reply
        0
        • M minjunkim

          @mrjj

          Hi
          yes, each of the rects is a button and i don't need any scrolling

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @minjunkim
          So you could use push or tool button and style it with stylesheet to
          have such look.
          The checkbox part is a bit more involving since the buttons can be checked but
          its not such separate checkbox, but more of a state.

          M 1 Reply Last reply
          2
          • mrjjM mrjj

            @minjunkim
            So you could use push or tool button and style it with stylesheet to
            have such look.
            The checkbox part is a bit more involving since the buttons can be checked but
            its not such separate checkbox, but more of a state.

            M Offline
            M Offline
            minjunkim
            wrote on last edited by
            #5

            @mrjj said in custom button menu list?:

            So you could use push or tool button and style it with stylesheet to
            have such look.
            The checkbox part is a bit more involving since the buttons can be checked but
            its not such separate checkbox, but more of a state.

            okay, thank you for reply.
            but What I really wonder is that I want it to behave like QMenu.
            so I will make the buttons look like qmenu by using getposition and clickevent

            is this right way?

            mrjjM 1 Reply Last reply
            0
            • M minjunkim

              @mrjj said in custom button menu list?:

              So you could use push or tool button and style it with stylesheet to
              have such look.
              The checkbox part is a bit more involving since the buttons can be checked but
              its not such separate checkbox, but more of a state.

              okay, thank you for reply.
              but What I really wonder is that I want it to behave like QMenu.
              so I will make the buttons look like qmenu by using getposition and clickevent

              is this right way?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by mrjj
              #6

              @minjunkim
              Oh, wait i missed the QMenu part.
              You mean it should act like a normal drop down menu ?
              In such case you can use QWidgetAction
              https://stackoverflow.com/questions/8358965/is-there-a-way-to-add-a-qwidget-to-a-qmenu-in-qtcreator

              M 1 Reply Last reply
              3
              • mrjjM mrjj

                @minjunkim
                Oh, wait i missed the QMenu part.
                You mean it should act like a normal drop down menu ?
                In such case you can use QWidgetAction
                https://stackoverflow.com/questions/8358965/is-there-a-way-to-add-a-qwidget-to-a-qmenu-in-qtcreator

                M Offline
                M Offline
                minjunkim
                wrote on last edited by
                #7

                @mrjj

                thank you mrjj

                i try it.

                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