23 , m_keyEvent(keyEvent)
32 return m_keyEvent->count();
40 return m_keyEvent->isAutoRepeat();
48 return m_keyEvent->key();
56 return static_cast<int>(m_keyEvent->modifiers());
64 return static_cast<quint32
>(m_keyEvent->nativeModifiers());
72 return static_cast<quint32
>(m_keyEvent->nativeScanCode());
80 return static_cast<quint32
>(m_keyEvent->nativeVirtualKey());
88 return m_keyEvent->text();
int count
number of keys involved in this event
QmlKeyEvent(QKeyEvent *keyEvent=nullptr, QObject *parent=nullptr)
quint32 nativeScanCode
native scan code of the event
quint32 nativeVirtualKey
native virtual key, or key sum of the event
quint32 nativeModifiers
native modifiers of the event
QString text
Returns the Unicode text that this key generated.
int key
key code which is pressed/released
bool isAutoRepeat() const
int modifiers
modifiers associated with the event