KeySequenceItem QML Type
Extensions to Qt Quick Controls. More...
- Import Statement: import org.kde.kquickcontrols
- Inherits: RowLayout
Detailed Description
Property Documentation
checkForConflictsAgainst : enumeration
Controls which types of shortcuts are checked for conflicts when the keySequence is set.
If a conflict is detected, a messagebox will be shown asking the user to confirm their input. Valid values are combinations of the following flags:
| Constant | Description |
|---|---|
| ShortcutType.None | Do not check for conflicts. |
| ShortcutType.StandardShortcuts | Check against standard shortcuts. |
| ShortcutType.GlobalShortcuts | Check against global shortcuts. |
The default is ShortcutType.GlobalShortcuts | ShortcutType.StandardShortcut.
See also KStandardShortcut, KGlobalAccel
currentKeySequence : keySequence
keySequence : alias
multiKeyShortcutsAllowed : bool
[since 6.16] patterns : enumeration
Specifies what components the recorded shortcut must have, for example whether the shortcut must contain only modifier keys (Modifier) or modifiers keys and a normal key (ModifierAndKey).
The patterns property can contain one or more recording patterns. For example, if the recorder accepts both normal and modifier only shortcuts, e.g. Modifier | ModifierAndKey. Valid values are combinations of the following flags:
| Constant | Description |
|---|---|
| ShortcutPattern.Modifier | The recorded shortcut must contain one or more modifier keys (Meta, Shift, Ctrl, or Alt). |
| ShortcutPattern.Key | The recorded shortcut must contain only one regular key, e.g. "A". |
| ShortcutPattern.ModifierAndKey | The recorded shortcut must contain one or more modifier keys followed by a regular key, e.g. Meta+A. |
The default is ShortcutPattern.ModifierAndKey.
This property was introduced in Qt 6.16.
showCancelButton : bool
showClearButton : bool
Signal Documentation
keySequenceModified()
Emitted whenever the key sequence is modified by the user, interacting with the component.
Either by interacting capturing a key sequence or pressing the clear button.
Note: The corresponding handler is
onKeySequenceModified.
Method Documentation
startCapturing()
Start capturing a key sequence.
This is equivalent to the user clicking on the main button of the item.