QKeyboardHandler#

Provides keyboard event notification. More

Inheritance diagram of PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler

Synopsis#

Properties#

Functions#

Slots#

Signals#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

class PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler([parent=None])#
Parameters:

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QKeyboardHandler instance with parent parent.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.focus: bool#

Holds true if the QKeyboardHandlers has focus.

Access functions:
property PᅟySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.sourceDevice: PySide6.Qt3DInput.Qt3DInput.QKeyboardDevice#

Holds the keyboard device of the QKeyboardHandler . Without a valid device, the QKeyboardHandler won’t receive any event.

Access functions:
PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.asteriskPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the * key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.backPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the back key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.backtabPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the backtab key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.callPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the call key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.cancelPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the cancel key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.context1Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the context 1 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.context2Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the context 2 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.context3Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the context 2 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.context4Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the context 4 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.deletePressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the delete key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.digit0Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the 0 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.digit1Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the 1 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.digit2Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the 2 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.digit3Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the 3 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.digit4Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the 4 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.digit5Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the 5 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.digit6Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the 6 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.digit7Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the 7 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.digit8Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the 8 key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.digit9Pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the 9 key is pressed with the event details being contained within event

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.downPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the down key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.enterPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the enter key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.escapePressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the escape key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.flipPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the flip key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.focus()#
Return type:

bool

See also

setFocus()

Getter of property focus .

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.focusChanged(focus)#
Parameters:

focus – bool

Notification signal of property focus .

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.hangupPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the hangup key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.leftPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the left key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.menuPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the menu key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.noPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the yes key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.numberSignPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the number sign key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.pressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when a key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.released(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when a key is released with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.returnPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the return key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.rightPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the right key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.selectPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the select key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.setFocus(focus)#
Parameters:

focus – bool

Sets the focus to focus. If focus is not currently set to true, this component will receive keyboard focus.

See also

focus()

Setter of property focus .

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.setSourceDevice(keyboardDevice)#
Parameters:

keyboardDevicePySide6.Qt3DInput.Qt3DInput.QKeyboardDevice

See also

sourceDevice()

Setter of property sourceDevice .

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.sourceDevice()#
Return type:

PySide6.Qt3DInput.Qt3DInput.QKeyboardDevice

Returns the current keyboard device.

Getter of property sourceDevice .

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.sourceDeviceChanged(keyboardDevice)#
Parameters:

keyboardDevicePySide6.Qt3DInput.Qt3DInput.QKeyboardDevice

Notification signal of property sourceDevice .

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.spacePressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the space key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.tabPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the tab key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.upPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the up key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.volumeDownPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the volume down key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.volumeUpPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the volume up key is pressed with the event details being contained within event.

PySide6.Qt3DInput.Qt3DInput.QKeyboardHandler.yesPressed(event)#
Parameters:

eventPySide6.Qt3DInput.Qt3DInput.QKeyEvent

This signal is emitted when the yes key is pressed with the event details being contained within event.