QKeySequenceEdit露

The QKeySequenceEdit widget allows to input a QKeySequence . More鈥�

Inheritance diagram of PySide2.QtWidgets.QKeySequenceEdit

Synopsis露

Functions露

Slots露

Signals露

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

keySequence

class PySide2.QtWidgets.QKeySequenceEdit([parent=None])露

PySide2.QtWidgets.QKeySequenceEdit(keySequence[, parent=None])

param parent:

PySide2.QtWidgets.QWidget

param keySequence:

PySide2.QtGui.QKeySequence

Constructs a QKeySequenceEdit widget with the given parent .

Constructs a QKeySequenceEdit widget with the given keySequence and parent .

PySide2.QtWidgets.QKeySequenceEdit.clear()露

Clears the current key sequence.

PySide2.QtWidgets.QKeySequenceEdit.editingFinished()露
PySide2.QtWidgets.QKeySequenceEdit.keySequence()露
Return type:

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.

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.