|qt creator keyboard shortcuts||1.64||0.9||4979||46|
I don't seem to find a way to do that in Qt Creator. Show activity on this post. You can set the shortcut keys in the QtDesigner in the 'Action Editor' (Tab at the bottom, the 'Signal/Slot Editor' tab is selected by default).What is qshortcut class in Qt?
The QShortcut class provides a way of connecting keyboard shortcuts to Qt's signals and slots mechanism, so that objects can be informed when a shortcut is executed. The shortcut can be set up to contain all the key presses necessary to describe a keyboard shortcut, including the states of modifier keys such as Shift, Ctrl, and Alt.How do I create a Qt GUI application?
Just create a new Qt GUI project (I used QtCreator) and add that code to the main window's constructor and it should work as expected. Please note that there is no need of freeing the memory since the Qt framework will take care of that when the app closes. Show activity on this post.Why can't Qt Creator execute any function?
Qt Creator executes the function that is available in the current context. If several functions are available for the same shortcut at a time, there is a conflict and Qt Creator cannot execute any function.