Qt3DInput.QKeyEvent¶
Synopsis¶
Functions¶
def
count
()def
isAccepted
()def
isAutoRepeat
()def
key
()def
modifiers
()def
nativeScanCode
()def
setAccepted
(accepted)def
text
()def
type
()
Detailed Description¶
Contains parameters that describe a key event
-
class
PySide2.Qt3DInput.Qt3DInput.
QKeyEvent
(type, key, modifiers[, text=""[, autorep=false[, count=1]]])¶ - Parameters
type –
Type
modifiers –
KeyboardModifiers
autorep –
bool
count –
ushort
text – unicode
key –
int
-
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
count
()¶ - Return type
int
-
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
isAccepted
()¶ - Return type
bool
-
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
isAutoRepeat
()¶ - Return type
bool
-
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
key
()¶ - Return type
int
-
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
matches
(key_)¶ - Parameters
key –
StandardKey
- Return type
bool
Returns
true
if the key event matches the given standard keykey_
; otherwise returnsfalse
.See also
StandardKey
-
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
modifiers
()¶ - Return type
int
-
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
nativeScanCode
()¶ - Return type
quint32
-
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
setAccepted
(accepted)¶ - Parameters
accepted –
bool
See also
isAccepted()
-
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
text
()¶ - Return type
unicode
-
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
type
()¶ - Return type
Type
Returns the type of the event.
© 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.