QActionInput Class
class Qt3DInput::QActionInputQActionInputは、入力イベントのトリガーに使用されるデバイスとボタンを格納します。詳細...
ヘッダー | #include <QActionInput> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
qmake | QT += 3dinput |
QML で | ActionInput |
を継承しています: | Qt3DInput::QAbstractActionInput |
ステータス | 非推奨 |
プロパティ
- buttons : QList<int>
- sourceDevice : Qt3DInput::QAbstractPhysicalDevice*
パブリック機能
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)
新しい QActionInput インスタンスをparent で構築します。
[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 に対するノーティファイアシグナル。
© 2025 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.