KeyEvent QML Type
|Import Statement:||import Qt3D.Input 2.0|
- accepted : bool
- count : int
- isAutoRepeat : bool
- key : int
- modifiers : int
- nativeScanCode : quint32
- text : string
- bool matches(StandardKey key)
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.
This property holds the keyboard modifier flags that existed immediately before the event occurred.
See also KeyEvent.modifiers.
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.
true if the key event matches the given standard key; otherwise returns
See also QKeySequence::StandardKey.
© 2016 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.