이 페이지에서

Qt3DInput::QButtonAxisInput Class

class Qt3DInput::QButtonAxisInput

버튼으로 제어되는 축 입력: 축 값은 조이스틱과 같은 기존의 아날로그 입력이 아닌 버튼으로 제어됩니다. 더 보기...

헤더: #include <Qt3DInput/QButtonAxisInput>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput)
target_link_libraries(mytarget PRIVATE Qt6::3dinput)
qmake: QT += 3dinput
QML에서: ButtonAxisInput
상속: Qt3DInput::QAbstractAxisInput
상태: 사용 중단됨

이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 말 것을 강력히 권장합니다.

속성

공개 함수

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)

멤버 함수 설명서

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

parent 를 사용하여 새로운 QButtonAxisInput 인스턴스를 생성합니다.

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