Класс 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.1/qt3dinput-qbuttonaxisinput.html