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. Best way to init QWidgetAction when shown from QToolButton's menu?
Forum Updated to NodeBB v4.3 + New Features

Best way to init QWidgetAction when shown from QToolButton's menu?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 441 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.
  • P Offline
    P Offline
    patrickkidd
    wrote on last edited by
    #1

    I have a QToolButton which has a popup menu containing a QWidgetAction with a slider. I need to initialize the slider when the popup us shown. What is the best way to get notified that the popup has been shown?

    Thanks!

    https://alaskafamilysystems.com/

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

      Hi
      What about
      http://doc.qt.io/qt-5/qmenu.html#aboutToShow

      1 Reply Last reply
      1
      • P Offline
        P Offline
        patrickkidd
        wrote on last edited by
        #3

        Perfect! I knew there was a better way than installing an event filter....

        https://alaskafamilysystems.com/

        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