QAxis Class

class Qt3DInput::QAxis

QAxis は、入力イベントのトリガーに使用される QAbstractAxisInput を保存します。詳細...

ヘッダー #include <QAxis>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake QT += 3dinput
QML で Axis
を継承しています: Qt3DCore::QNode
ステータス非推奨

プロパティ

パブリック機能

QAxis(Qt3DCore::QNode *parent = nullptr)
void addInput(Qt3DInput::QAbstractAxisInput *input)
QList<Qt3DInput::QAbstractAxisInput *> inputs() const
void removeInput(Qt3DInput::QAbstractAxisInput *input)
float value() const

シグナル

void valueChanged(float value)

詳細説明

parent を持つ新しい QAxis インスタンスを構築します。

プロパティの説明

[read-only] value : const float

軸の値。

アクセス機能:

float value() const

通知シグナル:

void valueChanged(float value)

メンバ関数ドキュメント

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

親(parent )を持つ新しい QAxis インスタンスを構築します.

void QAxis::addInput(Qt3DInput::QAbstractAxisInput *input)

QAxis::addInput 軸のinput を追加します。

Qt3DInput::QAbstractAxisInputも参照してください

QList<Qt3DInput::QAbstractAxisInput *> QAxis::inputs() const

QAxis::inputs

軸に追加されたすべての入力のベクトルを返します。

void QAxis::removeInput(Qt3DInput::QAbstractAxisInput *input)

QAxis::removeInput

軸からinput を削除します。

Qt3DInput::QAbstractAxisInputも参照してください

© 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.