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. Stack of QPushButtons as a popup menu

Stack of QPushButtons as a popup menu

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 345 Views 1 Watching
  • 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.
  • X Offline
    X Offline
    xtingray
    wrote on last edited by xtingray
    #1

    Hi,
    Right now I am implementing a QToolbar and I have a special requirement: I need to include a widget similar to the classic "Start" button of Microsoft systems, but with a little difference:, the menu must be composed by a set of QPushButton items. The size of the buttons within the menu (A, B, C) must be the same of the button (L) in the toolbar.

    | A |
    | B |
    | C |_______________
    | L |_________ (Toolbar)

    I tried using a QToolButton and attaching a QMenu object to include the buttons as QActions, but the menu is too small and it includes a text space not required.
    I need a result more like a stack of big buttons. Is this possible using the native classes of Qt or do I have to create my own widget?

    Thanks.


    Qt Developer

    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