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. QMenu - 2 + columns of items
QtWS25 Last Chance

QMenu - 2 + columns of items

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmenu
4 Posts 2 Posters 1.0k 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.
  • D Offline
    D Offline
    Dariusz
    wrote on last edited by
    #1

    Hey

    Is it possible to somehow arrange QMenu content in to 2 sets of column items ?

    I want 5 items in left column and lets say 7 in right column.

    Any ideas?

    TIA

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

      Hi
      Maybe you can use
      https://doc.qt.io/qt-5/qwidgetaction.html#details
      to build such menu yourself using a custom widget.

      D 1 Reply Last reply
      0
      • mrjjM mrjj

        Hi
        Maybe you can use
        https://doc.qt.io/qt-5/qwidgetaction.html#details
        to build such menu yourself using a custom widget.

        D Offline
        D Offline
        Dariusz
        wrote on last edited by
        #3

        @mrjj said in QMenu - 2 + columns of items:

        Hi
        Maybe you can use
        https://doc.qt.io/qt-5/qwidgetaction.html#details
        to build such menu yourself using a custom widget.

        Hmm could try that, I was slowly thinking of making new QWidget for it and just make it pretend to be menu but maybe QWidgetAction could be used here o.o

        mrjjM 1 Reply Last reply
        0
        • D Dariusz

          @mrjj said in QMenu - 2 + columns of items:

          Hi
          Maybe you can use
          https://doc.qt.io/qt-5/qwidgetaction.html#details
          to build such menu yourself using a custom widget.

          Hmm could try that, I was slowly thinking of making new QWidget for it and just make it pretend to be menu but maybe QWidgetAction could be used here o.o

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

          @dariusz
          Well the QMenu will still treat it as one item so its also kinda pretending :)
          I agree. you could also make a complete custom popup (like the drop down in ComboBox) type
          of menu and open it from a button but its harder to integrated with the rest of the QMenu if you have such one.

          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