QAxis stores QAbstractAxisInputs used to trigger an input event. 更多...
头: | #include <QAxis> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
qmake: | QT += 3dinput |
实例化: | 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 ) |
Constructs a new QAxis instance with parent .
[read-only]
value
: const
float
The value of the axis.
访问函数:
float | value () const |
通知程序信号:
void | valueChanged (float value ) |
[explicit]
QAxis::
QAxis
(
Qt3DCore::QNode
*
parent
= nullptr)
Constructs a new QAxis instance with parent parent .
QAxis::addInput Adds an input for the axis.
另请参阅 Qt3DInput::QAbstractAxisInput .
QAxis::inputs
Returns vector of all inputs added to the axis.
QAxis::removeInput
Removes an input from the axis.