Класс QButtonAxisInput
класс Qt3DInput::QButtonAxisInputВходное устройство оси, управляемое кнопками. Значение оси управляется кнопками, а не традиционным аналоговым входом, таким как джойстик. Подробнее...
| Заголовок: | #include <Qt3DInput/QButtonAxisInput> |
| CMake: | find_package(Qt6 COMPONENTS 3dinput REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| С версии: | Qt 5.7 |
| Создаётся из: | ButtonAxisInput |
| Наследует: | Qt3DInput::QAbstractAxisInput |
Свойства
- acceleration : float
- buttons : QList<int>
- deceleration : float
- scale : float
Открытые функции
| QButtonAxisInput(Qt3DCore::QNode *parent = nullptr) | |
| float | acceleration() const |
| QList<int> | buttons() const |
| float | deceleration() const |
| float | scale() const |
Открытые слоты
| void | setAcceleration(float acceleration) |
| void | setButtons(const QList<int> &buttons) |
| void | setDeceleration(float deceleration) |
| void | setScale(float scale) |
Сигналы
| void | accelerationChanged(float acceleration) |
| void | buttonsChanged(const QList<int> &buttons) |
| void | decelerationChanged(float deceleration) |
| void | scaleChanged(float scale) |
Подробное описание
Документация свойств
acceleration : float
Определяет скорость изменения значения оси при удерживании кнопки.
Функции доступа:
| float | acceleration() const |
| void | setAcceleration(float acceleration) |
Сигнал уведомления:
| void | accelerationChanged(float acceleration) |
buttons : QList<int>
Указывает кнопки, которые управляют осью.
Функции доступа:
| QList<int> | buttons() const |
| void | setButtons(const QList<int> &buttons) |
Сигнал уведомления:
| void | buttonsChanged(const QList<int> &buttons) |
deceleration : float
Определяет скорость, с которой значение оси возвращается к нормальному значению при отпускании кнопки.
Функции доступа:
| float | deceleration() const |
| void | setDeceleration(float deceleration) |
Сигнал уведомления:
| void | decelerationChanged(float deceleration) |
scale : float
Определяет масштаб, с которым масштабируется выходное значение оси. По умолчанию масштабирование не применяется, поэтому значение по умолчанию равно 1.
Функции доступа:
| float | scale() const |
| void | setScale(float scale) |
Сигнал уведомления:
| void | scaleChanged(float scale) |
Документация по функциям-членам
QButtonAxisInput::QButtonAxisInput(Qt3DCore::QNode *parent = nullptr)
Создаёт новый экземпляр QButtonAxisInput с parent.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.0/qt3dinput-qbuttonaxisinput.html