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. List of all the standard shortcuts[Solved]
Forum Updated to NodeBB v4.3 + New Features

List of all the standard shortcuts[Solved]

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 2.6k 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.
  • S Offline
    S Offline
    salmanh
    wrote on last edited by
    #1

    Hi,

    I am developing an app in which I am adding support for Shortcuts reassignment.

    I want to get all the standard shortcuts (cut, copy, paste) there are to be displayed in my Tree view.

    Is there any built-in function which gives me the list of all the shortcuts or any iterate able object to traverse through?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      None that I am aware of. But if you take a look at "QKeySequence":http://qt-project.org/doc/qt-4.8/qkeysequence.html API, you will notice there is a table there outlining them all. You could probably iterate over the sequence enum and use the ::toString() method to get the shortcuts. I've never tried that myself, so I can't absolutely confirm this, but it looks palusible that it will work :)

      (Z(:^

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

        Thanks a lot, it worked :)

        1 Reply Last reply
        0
        • sierdzioS Offline
          sierdzioS Offline
          sierdzio
          Moderators
          wrote on last edited by
          #4

          Great! If that solves the issue for you, please prepend "[Solved]" to topic's title.

          (Z(:^

          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