QKeyEvent

QKeyEvent event type send by KeyBoardHandler. More

Inheritance diagram of PySide6.Qt3DInput.Qt3DInput.QKeyEvent

Synopsis

Functions

Detailed Description

Contains parameters that describe a key event

class PySide6.Qt3DInput.Qt3DInput.QKeyEvent(type, key, modifiers[, text=""[, autorep=false[, count=1]]])
Parameters
  • text – str

  • key – int

  • modifiersKeyboardModifiers

  • autorep – bool

  • countushort

  • typeType

PySide6.Qt3DInput.Qt3DInput.QKeyEvent.count()
Return type

int

PySide6.Qt3DInput.Qt3DInput.QKeyEvent.isAccepted()
Return type

bool

PySide6.Qt3DInput.Qt3DInput.QKeyEvent.isAutoRepeat()
Return type

bool

PySide6.Qt3DInput.Qt3DInput.QKeyEvent.key()
Return type

int

PySide6.Qt3DInput.Qt3DInput.QKeyEvent.matches(key_)
Parameters

keyStandardKey

Return type

bool

Returns true if the key event matches the given standard key key_; otherwise returns false.

See also

StandardKey

PySide6.Qt3DInput.Qt3DInput.QKeyEvent.modifiers()
Return type

int

PySide6.Qt3DInput.Qt3DInput.QKeyEvent.nativeScanCode()
Return type

int

PySide6.Qt3DInput.Qt3DInput.QKeyEvent.setAccepted(accepted)
Parameters

accepted – bool

See also

isAccepted()

PySide6.Qt3DInput.Qt3DInput.QKeyEvent.text()
Return type

str

PySide6.Qt3DInput.Qt3DInput.QKeyEvent.type()
Return type

Type

Returns the type of the event.