View Full Version : how to catch Shift + Left arrow? [Soved]
thomaspu
28th December 2007, 23:08
How in the world do I catch a keypress event for when the user presses Shift + left arrow?
Paul
marcel
28th December 2007, 23:12
Override keyPressEvent for your widget and test for:
if (keyEvent->modifiers().testFlag(Qt::ShiftModifier) && keyEvent->key() == Qt::Key_Left)
{
...
}
thomaspu
28th December 2007, 23:16
Ah, thanks, that did the trick!
Paul
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.