QKeySequenceEdit#
The QKeySequenceEdit
widget allows to input a QKeySequence
. More…
Synopsis#
Functions#
def
isClearButtonEnabled
()def
keySequence
()def
setClearButtonEnabled
(enable)
Slots#
def
clear
()def
setKeySequence
(keySequence)
Signals#
def
editingFinished
()def
keySequenceChanged
(keySequence)
Detailed Description#
This widget lets the user choose a QKeySequence
, which is usually used as a shortcut. The recording is initiated when the widget receives the focus and ends one second after the user releases the last key.
See also
- class PySide6.QtWidgets.QKeySequenceEdit([parent=None])#
PySide6.QtWidgets.QKeySequenceEdit(keySequence[, parent=None])
- Parameters
keySequence –
PySide6.QtGui.QKeySequence
parent –
PySide6.QtWidgets.QWidget
Constructs a QKeySequenceEdit
widget with the given parent
.
Constructs a QKeySequenceEdit
widget with the given keySequence
and parent
.
- PySide6.QtWidgets.QKeySequenceEdit.clear()#
Clears the current key sequence.
- PySide6.QtWidgets.QKeySequenceEdit.editingFinished()#
This signal is emitted when the user finishes entering the shortcut.
Note
there is a one second delay before releasing the last key and emitting this signal.
- PySide6.QtWidgets.QKeySequenceEdit.isClearButtonEnabled()#
- Return type
bool
This property holds Whether the key sequence edit displays a clear button when it is not empty..
If enabled, the key sequence edit displays a trailing clear button when it contains some text, otherwise the line edit does not show a clear button (the default).
- PySide6.QtWidgets.QKeySequenceEdit.keySequence()#
- Return type
This property holds This property contains the currently chosen key sequence..
The shortcut can be changed by the user or via setter function.
- PySide6.QtWidgets.QKeySequenceEdit.keySequenceChanged(keySequence)#
- Parameters
keySequence –
PySide6.QtGui.QKeySequence
- PySide6.QtWidgets.QKeySequenceEdit.setClearButtonEnabled(enable)#
- Parameters
enable – bool
This property holds Whether the key sequence edit displays a clear button when it is not empty..
If enabled, the key sequence edit displays a trailing clear button when it contains some text, otherwise the line edit does not show a clear button (the default).
- PySide6.QtWidgets.QKeySequenceEdit.setKeySequence(keySequence)#
- Parameters
keySequence –
PySide6.QtGui.QKeySequence
This property holds This property contains the currently chosen key sequence..
The shortcut can be changed by the user or via setter function.