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
Forum Update on Monday, May 27th 2025

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 28 Jul 2019, 09:16 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
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 28 Jul 2019, 09:47 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 28 Jul 2019, 12:14
      0
      • M mrjj
        28 Jul 2019, 09:47

        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 28 Jul 2019, 12:14 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

        M 1 Reply Last reply 28 Jul 2019, 12:19
        0
        • D Dariusz
          28 Jul 2019, 12:14

          @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

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 28 Jul 2019, 12:19 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

          3/4

          28 Jul 2019, 12:14

          • Login

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