22 Q_PROPERTY(QQuickItem *target READ target WRITE setTarget NOTIFY targetChanged)
23 Q_PROPERTY(QStringList keys READ keys WRITE setKeys NOTIFY keysChanged)
24 Q_PROPERTY(
int maxKeyCount READ maxKeyCount WRITE setMaxKeyCount NOTIFY maxKeyCountChanged)
25#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
26 QML_NAMED_ELEMENT(KeySequenceListener)
32 QQuickItem *target()
const;
33 void setTarget(QQuickItem *item);
35 const QStringList &keys()
const;
36 void setKeys(
const QStringList &keys);
38 int maxKeyCount()
const;
39 void setMaxKeyCount(
int count);
41 Q_INVOKABLE
void clearKeys();
46 void maxKeyCountChanged();
49 bool eventFilter(QObject *watched, QEvent *event)
override;