def
count
()
def
isAccepted
()
def
isAutoRepeat
()
def
key
()
def
modifiers
()
def
nativeScanCode
()
def
setAccepted
(accepted)
def
text
()
def
type
()
Contains parameters that describe a key event
PySide2.Qt3DInput.Qt3DInput.
QKeyEvent
(
type
,
key
,
modifiers
[
,
text=""
[
,
autorep=false
[
,
count=1
]
]
]
)
¶
type
–
Type
modifiers
–
KeyboardModifiers
autorep
–
bool
count
–
ushort
text – unicode
key
–
int
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
count
(
)
¶
int
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
isAccepted
(
)
¶
bool
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
isAutoRepeat
(
)
¶
bool
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
key
(
)
¶
int
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
匹配
(
key_
)
¶
key
–
StandardKey
bool
返回
true
if the key event matches the given standard key
key_
;否则返回
false
.
另请参阅
StandardKey
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
modifiers
(
)
¶
int
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
nativeScanCode
(
)
¶
quint32
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
setAccepted
(
accepted
)
¶
accepted
–
bool
另请参阅
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
text
(
)
¶
unicode
PySide2.Qt3DInput.Qt3DInput.QKeyEvent.
type
(
)
¶
Type
Returns the type of the event.