QKeySequenceEdit Class
The QKeySequenceEdit widget allows to input a QKeySequence. More...
| Header: | #include <QKeySequenceEdit> |
| qmake: | QT += widgets |
| Since: | Qt 5.2 |
| Inherits: | QWidget. |
Properties
- keySequence : QKeySequence
Public Functions
| QKeySequenceEdit(QWidget * parent = 0) | |
| QKeySequenceEdit(const QKeySequence & keySequence, QWidget * parent = 0) | |
| ~QKeySequenceEdit() | |
| QKeySequence | keySequence() const |
- 217 public functions inherited from QWidget
- 31 public functions inherited from QObject
- 13 public functions inherited from QPaintDevice
Public Slots
| void | clear() |
| void | setKeySequence(const QKeySequence & keySequence) |
Signals
| void | editingFinished() |
| void | keySequenceChanged(const QKeySequence & keySequence) |
Reimplemented Protected Functions
| virtual bool | event(QEvent * e) |
| virtual void | keyPressEvent(QKeyEvent * e) |
| virtual void | keyReleaseEvent(QKeyEvent * e) |
| virtual void | timerEvent(QTimerEvent * e) |
- 37 protected functions inherited from QWidget
- 9 protected functions inherited from QObject
- 1 protected function inherited from QPaintDevice
Additional Inherited Members
- 1 public variable inherited from QObject
- 5 static public members inherited from QWidget
- 10 static public members inherited from QObject
- 37 protected functions inherited from QWidget
- 9 protected functions inherited from QObject
- 1 protected function inherited from QPaintDevice
- 1 protected slot inherited from QWidget
- 2 protected variables inherited from QObject
- 1 protected type inherited from QPaintDevice
Detailed Description
The QKeySequenceEdit widget allows to input a QKeySequence.
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 QKeySequenceEdit::keySequence.
Property Documentation
keySequence : QKeySequence
This property holds this property contains the currently chosen key sequence.
The shortcut can be changed by the user or via setter function.
Access functions:
| QKeySequence | keySequence() const |
| void | setKeySequence(const QKeySequence & keySequence) |
Notifier signal:
| void | keySequenceChanged(const QKeySequence & keySequence) |
Member Function Documentation
QKeySequenceEdit::QKeySequenceEdit(QWidget * parent = 0)
Constructs a QKeySequenceEdit widget with the given parent.
QKeySequenceEdit::QKeySequenceEdit(const QKeySequence & keySequence, QWidget * parent = 0)
Constructs a QKeySequenceEdit widget with the given keySequence and parent.
QKeySequenceEdit::~QKeySequenceEdit()
Destroys the QKeySequenceEdit object.
[slot] void QKeySequenceEdit::clear()
Clears the current key sequence.
[signal] void 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.
[virtual protected] bool QKeySequenceEdit::event(QEvent * e)
Reimplemented from QObject::event().
[virtual protected] void QKeySequenceEdit::keyPressEvent(QKeyEvent * e)
Reimplemented from QWidget::keyPressEvent().
[virtual protected] void QKeySequenceEdit::keyReleaseEvent(QKeyEvent * e)
Reimplemented from QWidget::keyReleaseEvent().
[virtual protected] void QKeySequenceEdit::timerEvent(QTimerEvent * e)
Reimplemented from QObject::timerEvent().