QKeyEvent Class▲
-
Header: QKeyEvent
-
Since: Qt 5.5
-
qmake: QT += 3dinput
-
Inherited By:
-
Instantiated By: qml-qt3d-input-keyevent.xml
-
Inherits: https://
Detailed Description▲
Property Documentation▲
accepted : bool▲
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.
Access functions:
-
bool isAccepted() const
-
void setAccepted(bool accepted)
[read-only] count : const int▲
Holds the number of keys involved in this event. If https:// is not empty, this is simply the length of the string.
Access functions:
-
int count() const
[read-only] isAutoRepeat : const bool▲
Holds whether this event comes from an auto-repeating key.
Access functions:
-
bool isAutoRepeat() const
[read-only] key : const int▲
This property holds the code of the key that was pressed or released.
See https:// for the list of keyboard codes.
Access functions:
-
int key() const
See Also▲
See also QKeyEvent::key
[read-only] modifiers : const int▲
This property holds the keyboard modifier flags that existed immediately before the event occurred.
Access functions:
-
int modifiers() const
See Also▲
See also QKeyEvent::modifiers
[read-only] nativeScanCode : const quint32▲
This property contains the native scan code of the key that was pressed. It is passed through from https:// unchanged.
Access functions:
-
nativeScanCode() const
[read-only] 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 https:// will contain a valid value.
Access functions:
-
text() const
Member Function Documentation▲
bool QKeyEvent::matches(QKeySequence::StandardKey key_) const▲
Returns true if the key event matches the given standard key key_; otherwise returns false.
See Also▲
See also https://
QEvent::Type QKeyEvent::type() const▲
Returns the type of the event.


