|qmake:||QT += 3dinput|
- 1 property inherited from QObject
|QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString &text = QString(), bool autorep = false, ushort count = 1)|
|QKeyEvent(const QKeyEvent &ke)|
|bool||matches(QKeySequence::StandardKey key_) const|
- 32 public functions inherited from QObject
Additional Inherited Members
- 1 public slot inherited from QObject
- 2 signals inherited from QObject
- 11 static public members inherited from QObject
- 9 protected functions inherited from QObject
QKeyEvent event type send by KeyBoardHandler.
Contains parameters that describe a key event
Setting accepted to
true prevents the key event from being propagated to the item's parent.
Generally, if the item acts on the key event then it should be accepted so that ancestor items do not also respond to the same event.
Holds the number of keys involved in this event. If text is not empty, this is simply the length of the string.
Holds whether this event comes from an auto-repeating key.
This property holds the code of the key that was pressed or released.
See Qt.Key for the list of keyboard codes.
See also QKeyEvent::key.
This property holds the keyboard modifier flags that existed immediately before the event occurred.
See also QKeyEvent::modifiers.
nativeScanCode : const quint32
This property contains the native scan code of the key that was pressed. It is passed through from QKeyEvent unchanged.
text : const QString
This property holds the Unicode text that the key generated. The text returned can be an empty string in cases where modifier keys, such as Shift, Control, Alt, and Meta, are being pressed or released. In such cases key will contain a valid value.
Member Function Documentation
QKeyEvent::QKeyEvent(QEvent::Type type, int key, Qt::KeyboardModifiers modifiers, const QString &text = QString(), bool autorep = false, ushort count = 1)
Default constructs an instance of QKeyEvent.
QKeyEvent::QKeyEvent(const QKeyEvent &ke)
bool QKeyEvent::matches(QKeySequence::StandardKey key_) const
true if the key event matches the given standard key key_; otherwise returns
See also QKeySequence::StandardKey.
QEvent::Type QKeyEvent::type() const
Returns the type of event
A shared pointer for QKeyEvent.
© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.