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

QActionInput Class

QActionInput stores Device and Buttons used to trigger an input event.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QActionInput Class

  • Header: QActionInput

  • Since: Qt 5.7

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dinput)

    target_link_libraries(mytarget PRIVATE Qt6::3dinput)

  • qmake: QT += 3dinput

  • Inherited By:

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

  • Inherits: Qt3DInput::QAbstractActionInput

Detailed Description

 

Property Documentation

 

buttons : QList<int>

Holds the buttons that can trigger this Action.

Access functions:

  • <int> buttons() const

  • void setButtons(const <int> &buttons)

Notifier signal:

sourceDevice : Qt3DInput::QAbstractPhysicalDevice*

The current source device of the QActionInput.

Access functions:

  • *sourceDevice() const

  • void setSourceDevice( *sourceDevice)

Notifier signal:

Member Function Documentation

 

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

Constructs a new QActionInput instance with parent.

void QActionInput::buttonsChanged(const QList<int> &buttons)

This signal is emitted when the buttons associated with the action input is changed. The buttons changed are buttons

Notifier signal for property buttons.

void QActionInput::setButtons(const QList<int> &buttons)

Set the buttons to trigger the QActionInput instance to buttons.

Setter function for property buttons.

See Also

See also buttons()

void QActionInput::sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

This signal is emitted when the source device associated with the action input is changed to sourceDevice.

Notifier signal for property sourceDevice.

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