内容表

上一话题

Qt3DInput.QInputSettings

下一话题

Qt3DInput.QKeyboardDevice

Qt3DInput.QKeyEvent

QKeyEvent event type send by KeyBoardHandler. 更多

Inheritance diagram of PySide2.Qt3DInput.Qt3DInput.QKeyEvent

概要

函数

详细描述

Contains parameters that describe a key event

class 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

另请参阅

isAccepted()

PySide2.Qt3DInput.Qt3DInput.QKeyEvent. text ( )
返回类型

unicode

PySide2.Qt3DInput.Qt3DInput.QKeyEvent. type ( )
返回类型

Type

Returns the type of the event.