[PyQt] QLineEdit vs. menu keyboard shortcuts
Nathan Weston
nathan at genarts.com
Tue Jun 28 16:50:40 BST 2011
QLineEdit has some keyboard shortcuts (e.g. Ctrl+Z for Undo) that clash
with the shortcuts for QActions in my application menus. When a
QLineEdit has keyboard focus, it intercepts these shortcuts and my
QActions are never triggered.
I'd like to give application-level shortcuts precedence over QLineEdit's
shortcuts, but I can't seem to find a clean and general way to do this.
Alternatively, is there a way to customize the keyboard shortcuts in
QLineEdit? If I could disable some of the problematic shortcuts that
would be a reasonable workaround.
- Nathan
More information about the PyQt
mailing list