QAxis Class

class Qt3DInput ::QAxis

QAxis stores QAbstractAxisInputs used to trigger an input event. 更多...

头: #include <QAxis>
qmake: QT += 3dinput
Since: Qt 5.7
实例化: Axis
继承: Qt3DCore::QNode

该类在 Qt 5.7 引入。

特性

公共函数

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

信号

void valueChanged (float value )

详细描述

Constructs a new QAxis instance with parent .

特性文档编制

value : const float

The value of the axis.

访问函数:

float value () const

通知程序信号:

void valueChanged (float value )

成员函数文档编制

QAxis:: QAxis ( Qt3DCore::QNode * parent = nullptr)

Constructs a new QAxis instance with parent parent .

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

QAxis::addInput Adds an input for the axis.

另请参阅 Qt3DInput::QAbstractAxisInput .

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

QAxis::inputs

Returns vector of all inputs added to the axis.

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

QAxis::removeInput

Removes an input from the axis.

另请参阅 Qt3DInput::QAbstractAxisInput .