このページでは

Qt3DInput::QActionInput Class

class Qt3DInput::QActionInput

QActionInput は、入力イベントをトリガーするために使用されるデバイスおよびボタンを格納します。詳細...

ヘッダー: #include <qactioninput.h>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
QML内: ActionInput
継承元: Qt3DInput::QAbstractActionInput
ステータス: 非推奨

このクラスは非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

パブリック関数

QActionInput(Qt3DCore::QNode *parent = nullptr)
QList<int> buttons() const
Qt3DInput::QAbstractPhysicalDevice *sourceDevice() const

パブリックスロット

void setButtons(const QList<int> &buttons)
void setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

シグナル

void buttonsChanged(const QList<int> &buttons)
void sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

詳細な説明

プロパティのドキュメント

buttons : QList<int>

このアクションを起動できるボタンを保持します。

アクセス関数:

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

通知シグナル:

void buttonsChanged(const QList<int> &buttons)

sourceDevice : Qt3DInput::QAbstractPhysicalDevice*

QActionInput の電流源デバイス。

アクセス機能:

Qt3DInput::QAbstractPhysicalDevice *sourceDevice() const
void setSourceDevice(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

通知信号:

void sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

メンバ関数のドキュメント

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

parent を使用して、新しい QActionInput インスタンスを作成します。

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

このシグナルは、アクション入力に関連付けられたボタンが変更されたときに発火します。変更されたボタンは以下の通りです。buttons

注: プロパティ「buttons 」の通知 シグナルです。

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

QActionInput インスタンスを起動するボタンをbuttons に設定します。

注: プロパティ `buttons`のセッター 関数です。

buttons()も参照してください 。

[signal] void QActionInput::sourceDeviceChanged(Qt3DInput::QAbstractPhysicalDevice *sourceDevice)

このシグナルは、アクション入力に関連付けられたソースデバイスが「sourceDevice 」に変更されたときに発信されます。

注: プロパティ `sourceDevice` に対する通知 信号です。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.