Qt Forum

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

    List of all the standard shortcuts[Solved]

    General and Desktop
    2
    4
    2245
    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.
    • S
      salmanh last edited by

      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 Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

        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 Reply Quote 0
        • S
          salmanh last edited by

          Thanks a lot, it worked :)

          1 Reply Last reply Reply Quote 0
          • sierdzio
            sierdzio Moderators last edited by

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

            (Z(:^

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