Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.10.0 Beta3
-
None
Description
The code commonly used to achieve a common Ctrl-Q Quit shortcut (on Windows, where the standard key was empty in 6.9) no longer works in 6.10:
auto ks = QKeySequence(QKeySequence::Quit); qDebug() << ks << "empty=" << ks.isEmpty(); if (ks.isEmpty()) ks = QKeySequence(Qt::CTRL | Qt::Key_Q); else qDebug() << "key=" << ks[0]; auto *qa = fm->addAction("Quit", ks, &w, &QWidget::close); qDebug() << "act" << qa->shortcut();
now produces
6.10.0 windows windows11 QList() QKeySequence("Exit") empty= false act QKeySequence("Exit") key= QKeyCombination(QFlags<Qt::KeyboardModifier>(NoModifier), Qt::Key_Exit) act QKeySequence("Exit")
(not working) as opposed to
6.9.1 windows windows11 QList() QKeySequence("") empty= true act QKeySequence("Ctrl+Q")
Attachments
Issue Links
- resulted from
-
QTBUG-93269 Linux: support copy&paste functionality (XF86Copy, XF86Paste, XF86Cut, XF86Undo, XF86Redo, etc...)
-
- Closed
-