List of all the standard shortcuts[Solved]
-
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?
-
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 :)
-
Great! If that solves the issue for you, please prepend "[Solved]" to topic's title.