Qt 6.11 is out! See what's new in the release
blog
How to distinguish Left-Shift and Right-Shift in QShortcut ?
-
Like this:
connect(new QShortcut(QKeySequence(Qt::SHIFT_Left + Qt::Key_Down), this), SIGNAL(activated()), this, SLOT(moveBottomDown()));@sonichy said in How to distinguish Left-Shift and Right-Shift in QShortcut ?:
connect(new QShortcut(QKeySequence(Qt::SHIFT_Left + Qt::Key_Down), this), SIGNAL(activated()), this, SLOT(moveBottomDown()));
Unfortunately there is no difference in
QKeybetween left and right shift. There is onlyQt::ShiftModifier.In this topic here they suggest to use the OS native key codes / events.