How in the world do I catch a keypress event for when the user presses Shift + left arrow?
Paul
How in the world do I catch a keypress event for when the user presses Shift + left arrow?
Paul
Last edited by thomaspu; 28th December 2007 at 23:17. Reason: solved
Override keyPressEvent for your widget and test for:
Qt Code:
if (keyEvent->modifiers().testFlag(Qt::ShiftModifier) && keyEvent->key() == Qt::Key_Left) { ... }To copy to clipboard, switch view to plain text mode
Ah, thanks, that did the trick!
Paul
Bookmarks