QKeySequenceEdit Class

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

Header: #include <QKeySequenceEdit>
qmake: QT += widgets
Since: Qt 5.2
Inherits: QWidget

This class was introduced in Qt 5.2.

Properties

Public Functions

QKeySequence keySequence() const

Public Slots

void setKeySequence(const QKeySequence &keySequence)

Signals

void keySequenceChanged(const QKeySequence &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 QKeySequenceEdit::keySequence.

Property Documentation

keySequence : QKeySequence

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)