Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Hiding without disabling the shortcut of a QAction in one QMenu but not the other

    General and Desktop
    1
    1
    562
    Loading More Posts
    • 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
      DerekDomino last edited by

      Hello,

      I have a serie of QAction's. The whole serie is added in two separate menus. One of this menu is part of an always on top window. So, when the application looses focus but still sits on top of everything, shortcuts are of course non-working.

      To avoid confusion, I would like to hide the shortcuts of this serie of QAction's in this menu (dropdown of a QToolButton) but not the other.

      Do you know how to do that without having to duplicate the actions and without having to rewire all the action's signals/slots twice?

      Thanks

      1 Reply Last reply Reply Quote 0
      • First post
        Last post