Details
-
Suggestion
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
4.2.2
-
None
Description
There should be overloads that take a QKeySequence.
If you want to write code that e.g. tests redo() (which has different keys on different platforms) you now have to do stuff like this:
int val = QKeySequence(QKeySequence::Redo)[0];
Qt::KeyboardModifiers mods = (Qt::KeyboardModifiers)(val & Qt::KeyboardModifierMask);
QTest::keyClick(widget, val & ~mods, mods);
Attachments
Issue Links
- duplicates
-
QTBUG-53381 Allow sending standard keys to windows
-
- Closed
-