IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QKeyboardHandler Class

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QKeyboardHandler Class▲

  • Header: QKeyboardHandler

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dinput)

    target_link_libraries(mytarget PRIVATE Qt6::3dinput)

  • qmake: QT += 3dinput

  • Inherited By:

  • Instantiated By: qml-qt3d-input-keyboardhandler.xml

  • Inherits: Qt3DCore::QComponent

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:

  • *sourceDevice() const

  • void setSourceDevice( *keyboardDevice)

Notifier signal:

  • void sourceDeviceChanged( *keyboardDevice)

Member Function Documentation▲

 

[explicit] QKeyboardHandler::QKeyboardHandler(Qt3DCore::QNode *parent = nullptr)▲

Constructs a new QKeyboardHandler instance with parent parent.

void QKeyboardHandler::asteriskPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::backPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::backtabPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::callPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::cancelPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::context1Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::context2Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::context3Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::context4Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::deletePressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::digit0Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::digit1Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::digit2Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::digit3Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::digit4Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::digit5Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::digit6Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::digit7Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::digit8Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::digit9Pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::downPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::enterPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::escapePressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::flipPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::hangupPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::leftPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::menuPressed(Qt3DInput::QKeyEvent *event)▲

void QKeyboardHandler::noPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::numberSignPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::pressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::released(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::returnPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::rightPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::selectPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::setFocus(bool focus)▲

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

Setter function for property focus.

See Also▲

See also focus()

Qt3DInput::QKeyboardDevice *QKeyboardHandler::sourceDevice() const▲

Returns the current keyboard device.

Getter function for property sourceDevice.

See Also▲

See also setSourceDevice()

void QKeyboardHandler::spacePressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::tabPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::upPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::volumeDownPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::volumeUpPressed(Qt3DInput::QKeyEvent *event)▲

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

void QKeyboardHandler::yesPressed(Qt3DInput::QKeyEvent *event)▲

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

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+