QKeyboardHandler Class

class Qt3DInput::QKeyboardHandler

Provides keyboard event notification. More...

Header: #include <QKeyboardHandler>
qmake: QT += 3dinput
Since: Qt 5.5
Instantiated By: KeyboardHandler
Inherits: Qt3DCore::QComponent

This class was introduced in Qt 5.5.

Properties

Public Functions

bool focus() const
Qt3DInput::QKeyboardDevice *sourceDevice() const

Public Slots

void setFocus(bool focus)
void setSourceDevice(Qt3DInput::QKeyboardDevice *keyboardDevice)

Signals

void focusChanged(bool focus)
void sourceDeviceChanged(Qt3DInput::QKeyboardDevice *keyboardDevice)

Detailed Description

Property Documentation

focus : bool

Holds true if the QKeyboardHandlers has focus.

Access functions:

bool focus() const
void setFocus(bool focus)

Notifier signal:

void focusChanged(bool focus)

sourceDevice : Qt3DInput::QKeyboardDevice*

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

Access functions:

Qt3DInput::QKeyboardDevice *sourceDevice() const
void setSourceDevice(Qt3DInput::QKeyboardDevice *keyboardDevice)

Notifier signal:

void sourceDeviceChanged(Qt3DInput::QKeyboardDevice *keyboardDevice)