class KKeySequenceWidget |
|
|
A widget to input a QKeySequence. This widget lets the user choose a QKeySequence, which is usually used as a shortcut key, by pressing the keys just like to trigger a shortcut. Calling captureKeySequence(), or the user clicking into the widget, start recording.
Author Mark Donohoe |
|
Constructor. |
|
|
Capture a shortcut from the keyboard. This call will only return once a key sequence has been captured or input was aborted. If a key sequence was input, keySequenceChanged() will be emitted. See also setModifierlessAllowed() |
|
Clear the key sequence. |
|
See also validationHook(). |
|
Return if the widget accepts plain letter or symbol keys without modifiers like Ctrl, Alt, Meta. "Special" keys like F1, Insert and so on will always work. |
|
Return the currently selected key sequence. |
|
This signal is emitted when the current key sequence has changed, be it by user input or programmatically. |
|
Set whether a small button to set an empty key sequence should be displayed next to the main input widget. The default is to show the clear button. |
|
Set the key sequence. If val == Validate (the default), and the call is actually changing the key sequence, the signal validationHook() will be emitted. |
|
Set whether to accept plain letter or symbol keys without modifiers like Ctrl, Alt, Meta. "Special" keys like F1, Insert, PageDown will always work. This only applies to user input, not to setShortcut(). |
|
This signal is emitted when the key sequence has changed as the result of user input or calling setKeySequence(seq, Validate). Call denyValidation() in a slot called from this signal to deny a change of key sequence. Do not call setKeySequence() in a slot called from this signal. Do it later if you have to. |
Validate | - | Validate key sequence | |
NoValidate | - | Use key sequence without validation |