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. how to position the popup on QToolButton

how to position the popup on QToolButton

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 378 Views 2 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.
  • B Offline
    B Offline
    Blackzero
    wrote on last edited by
    #1

    I want to position the PopUp menu when it appears from the bottom to the right, is that possible?
    Screenshot 2024-09-03 201428.jpg

    Pl45m4P 1 Reply Last reply
    0
    • B Blackzero

      I want to position the PopUp menu when it appears from the bottom to the right, is that possible?
      Screenshot 2024-09-03 201428.jpg

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by Pl45m4
      #2

      @Blackzero

      Write your own QToolButton subclass and handle the popup menu yourself (maybe with your custom menu).


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SimonSchroeder
        wrote on last edited by
        #3

        As @Pl45m4 already said, subclass QToolButton. Most likely you'd like to override the showMenu slot and handle everything yourself in there.

        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