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. Keyboard shortcuts in a tooltip
Qt 6.11 is out! See what's new in the release blog

Keyboard shortcuts in a tooltip

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.4k 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Is there a way to automatically display keyboard shortcuts in the tooltip for QAction, similar to how Creator does it? I guess that I can write my own class deriving from QAction, but then it would not be possible to use it in the Designer's action editor.

    Thanks!

    1 Reply Last reply
    1
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Which tool tip are you referring to in Creator? We have a couple of those;)

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        Hi, I meant like the Run and Start Debugging buttons. They show a nice looking gray keyboard shortcut after the main tooltip text. I was wondering if that's something that can be configured for any widget, or it's hardcoded into the tooltips in the creator.

        Thanks!

        1 Reply Last reply
        1

        • Login

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