Qt 5.6 | Qt 3D | C++ Classes | QKeyboardInput

Qt 5.6.3 Reference Documentation

# QKeyboardInput Class

(Qt3DInput::QKeyboardInput)

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

- List of all members, including inherited members

## Properties

- controller : Qt3DInput::QKeyboardController *
- focus : bool

- 1 property inherited from Qt3DCore::QComponent
- 2 properties inherited from Qt3DCore::QNode

## Public Functions

| QKeyboardInput(QNode *parent = Q_NULLPTR)
| ~QKeyboardInput()
QKeyboardController * | controller() const
bool | focus() const

- 2 public functions inherited from Qt3DCore::QComponent
- 6 public functions inherited from Qt3DCore::QNode

## Public Slots

void | setController(QKeyboardController *controller)
void | setFocus(bool focus)

- 1 public slot inherited from Qt3DCore::QComponent
- 2 public slots inherited from Qt3DCore::QNode

## Signals

void | asteriskPressed(Qt3DInput::QKeyEvent *event)
void | backPressed(Qt3DInput::QKeyEvent *event)
void | backtabPressed(Qt3DInput::QKeyEvent *event)
void | callPressed(Qt3DInput::QKeyEvent *event)
void | cancelPressed(Qt3DInput::QKeyEvent *event)
void | context1Pressed(Qt3DInput::QKeyEvent *event)
void | context2Pressed(Qt3DInput::QKeyEvent *event)
void | context3Pressed(Qt3DInput::QKeyEvent *event)
void | context4Pressed(Qt3DInput::QKeyEvent *event)
void | controllerChanged(QKeyboardController *controller)
void | deletePressed(Qt3DInput::QKeyEvent *event)
void | digit0Pressed(Qt3DInput::QKeyEvent *event)
void | digit1Pressed(Qt3DInput::QKeyEvent *event)
void | digit2Pressed(Qt3DInput::QKeyEvent *event)
void | digit3Pressed(Qt3DInput::QKeyEvent *event)
void | digit4Pressed(Qt3DInput::QKeyEvent *event)
void | digit5Pressed(Qt3DInput::QKeyEvent *event)
void | digit6Pressed(Qt3DInput::QKeyEvent *event)
void | digit7Pressed(Qt3DInput::QKeyEvent *event)
void | digit8Pressed(Qt3DInput::QKeyEvent *event)
void | digit9Pressed(Qt3DInput::QKeyEvent *event)
void | downPressed(Qt3DInput::QKeyEvent *event)
void | enterPressed(Qt3DInput::QKeyEvent *event)
void | escapePressed(Qt3DInput::QKeyEvent *event)
void | flipPressed(Qt3DInput::QKeyEvent *event)
void | focusChanged(bool focus)
void | hangupPressed(Qt3DInput::QKeyEvent *event)
void | leftPressed(Qt3DInput::QKeyEvent *event)
void | menuPressed(Qt3DInput::QKeyEvent *event)
void | noPressed(Qt3DInput::QKeyEvent *event)
void | numberSignPressed(Qt3DInput::QKeyEvent *event)
void | pressed(Qt3DInput::QKeyEvent *event)
void | released(Qt3DInput::QKeyEvent *event)
void | returnPressed(Qt3DInput::QKeyEvent *event)
void | rightPressed(Qt3DInput::QKeyEvent *event)
void | selectPressed(Qt3DInput::QKeyEvent *event)
void | spacePressed(Qt3DInput::QKeyEvent *event)
void | tabPressed(Qt3DInput::QKeyEvent *event)
void | upPressed(Qt3DInput::QKeyEvent *event)
void | volumeDownPressed(Qt3DInput::QKeyEvent *event)
void | volumeUpPressed(Qt3DInput::QKeyEvent *event)
void | yesPressed(Qt3DInput::QKeyEvent *event)

- 2 signals inherited from Qt3DCore::QComponent
- 2 signals inherited from Qt3DCore::QNode

## Protected Functions

void | copy(const Qt3DCore::QNode *ref)
void | keyEvent(QKeyEvent *event)
void | sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change)

- 1 protected function inherited from Qt3DCore::QComponent
- 3 protected functions inherited from Qt3DCore::QNode

### Additional Inherited Members

- 1 static protected member inherited from Qt3DCore::QNode

## Detailed Description

## Property Documentation

### controller : Qt3DInput::QKeyboardController *

Access functions:

QKeyboardController * | controller() const
void | setController(QKeyboardController *controller)

Notifier signal:

void | controllerChanged(QKeyboardController *controller)

### focus : bool

Access functions:

bool | focus() const
void | setFocus(bool focus)

Notifier signal:

void | focusChanged(bool focus)

## Member Function Documentation

### QKeyboardInput::QKeyboardInput(QNode *parent = Q_NULLPTR)

Constructs a new QKeyboardInput instance with parent parent.

### QKeyboardInput::~QKeyboardInput()

Destroys the instance of QKeyboardInput.

### `[signal]` void QKeyboardInput::asteriskPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::backPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::backtabPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::callPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::cancelPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::context1Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::context2Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::context3Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::context4Pressed(Qt3DInput::QKeyEvent *event)

### QKeyboardController *QKeyboardInput::controller() const

Returns the current keyboard controller.

Note: Getter function for property controller.

See also setController().

### `[protected]` void QKeyboardInput::copy(const Qt3DCore::QNode *ref)

### `[signal]` void QKeyboardInput::deletePressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::digit0Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::digit1Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::digit2Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::digit3Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::digit4Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::digit5Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::digit6Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::digit7Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::digit8Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::digit9Pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::downPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::enterPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::escapePressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::flipPressed(Qt3DInput::QKeyEvent *event)

### bool QKeyboardInput::focus() const

Returns the current focus.

Note: Getter function for property focus.

See also setFocus().

### `[signal]` void QKeyboardInput::hangupPressed(Qt3DInput::QKeyEvent *event)

### `[protected]` void QKeyboardInput::keyEvent(QKeyEvent *event)

### `[signal]` void QKeyboardInput::leftPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::menuPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::noPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::numberSignPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::pressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::released(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::returnPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::rightPressed(Qt3DInput::QKeyEvent *event)

### `[protected]` void QKeyboardInput::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &change)

### `[signal]` void QKeyboardInput::selectPressed(Qt3DInput::QKeyEvent *event)

### `[slot]` void QKeyboardInput::setController(QKeyboardController *controller)

Sets the keyboard controller to controller. Without a valid controller, the QKeyboardInput won't receive any event.

Note: Setter function for property controller.

See also controller().

### `[slot]` void QKeyboardInput::setFocus(bool focus)

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

Note: Setter function for property focus.

See also focus().

### `[signal]` void QKeyboardInput::spacePressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::tabPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::upPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::volumeDownPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::volumeUpPressed(Qt3DInput::QKeyEvent *event)

### `[signal]` void QKeyboardInput::yesPressed(Qt3DInput::QKeyEvent *event)