QKeySequenceEdit¶
The
QKeySequenceEdit
widget allows to input aQKeySequence
. More…
Synopsis¶
Functions¶
def
keySequence
()
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 PySide2.QtWidgets.QKeySequenceEdit([parent=None])¶
PySide2.QtWidgets.QKeySequenceEdit(keySequence[, parent=None])
- param parent:
- param keySequence:
Constructs a
QKeySequenceEdit
widget with the givenparent
.Constructs a
QKeySequenceEdit
widget with the givenkeySequence
andparent
.
- PySide2.QtWidgets.QKeySequenceEdit.clear()¶
Clears the current key sequence.
- PySide2.QtWidgets.QKeySequenceEdit.editingFinished()¶
- PySide2.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.
- PySide2.QtWidgets.QKeySequenceEdit.keySequenceChanged(keySequence)¶
- Parameters:
keySequence –
PySide2.QtGui.QKeySequence
- PySide2.QtWidgets.QKeySequenceEdit.setKeySequence(keySequence)¶
- Parameters:
keySequence –
PySide2.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.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.