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.