Handle press and release with QShortcut
General and Desktop
3
Posts
2
Posters
3.0k
Views
1
Watching
-
Dear all,
I would like to associate an action when PAGE_DOWN is press and stop this action when it is released.I used to do this my re-implementing the keyPressedEvent() but I discovered the QShortcut object and thought I could give it a try.
I successfully binded a slot to my shortcut, however the only signal I have is acrivated().
I there a way to handle pressed and released modes?Thanks a zillion!
-
Ok, thanks for the answer.