Qt3DInput::QWheelEvent Class
class Qt3DInput::QWheelEventQWheelEvent 클래스에는 마우스 휠 이벤트를 설명하는 매개변수들이 포함되어 있습니다. 더 보기...
| 헤더: | #include <Qt3DInput/QWheelEvent> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
| qmake: | QT += 3dinput |
| QML에서: | WheelEvent |
| 상속: | QObject |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
공개 유형
| enum | Buttons { LeftButton, RightButton, MiddleButton, BackButton, NoButton } |
| enum | Modifiers { NoModifier, ShiftModifier, ControlModifier, AltModifier, MetaModifier, KeypadModifier } |
속성
|
공개 행사
| QWheelEvent(const QWheelEvent &e) | |
| QPoint | angleDelta() const |
| int | buttons() const |
| bool | isAccepted() const |
| Qt3DInput::QWheelEvent::Modifiers | modifiers() const |
| void | setAccepted(bool accepted) |
| QEvent::Type | type() const |
| int | x() const |
| int | y() const |
관련 비회원
QKeyEvent, QMouseEvent 및 QMouseHandler도 참조하십시오 .
멤버 유형 문서
enum QWheelEvent::Buttons
| 상수 | 상수 |
|---|---|
Qt3DInput::QWheelEvent::LeftButton | Qt::LeftButton |
Qt3DInput::QWheelEvent::RightButton | Qt::RightButton |
Qt3DInput::QWheelEvent::MiddleButton | Qt::MiddleButton |
Qt3DInput::QWheelEvent::BackButton | Qt::BackButton |
Qt3DInput::QWheelEvent::NoButton | Qt::NoButton |
enum QWheelEvent::Modifiers
| 상수 | 상수 |
|---|---|
Qt3DInput::QWheelEvent::NoModifier | Qt::NoModifier |
Qt3DInput::QWheelEvent::ShiftModifier | Qt::ShiftModifier |
Qt3DInput::QWheelEvent::ControlModifier | Qt::ControlModifier |
Qt3DInput::QWheelEvent::AltModifier | Qt::AltModifier |
Qt3DInput::QWheelEvent::MetaModifier | Qt::MetaModifier |
Qt3DInput::QWheelEvent::KeypadModifier | Qt::KeypadModifier |
속성 문서
accepted : bool
마우스 휠 이벤트가 수락되었는지 여부를 지정합니다
액세스 함수:
| bool | isAccepted() const |
| void | setAccepted(bool accepted) |
[read-only] angleDelta : const QPoint
마우스 휠 이벤트의 휠 각도 변경량을 지정합니다.
액세스 함수:
| QPoint | angleDelta() const |
[read-only] buttons : const int
마우스 휠 이벤트에 해당 버튼이 포함되어 있는 경우 이를 지정합니다.
액세스 기능:
| int | buttons() const |
[read-only] modifiers : const Qt3DInput::QWheelEvent::Modifiers
마우스 휠 이벤트에 수정자가 적용되었는지 여부를 지정합니다
액세스 함수:
| Qt3DInput::QWheelEvent::Modifiers | modifiers() const |
[read-only] x : const int
마우스 휠 이벤트의 X 좌표를 지정합니다
액세스 함수:
| int | x() const |
[read-only] y : const int
마우스 휠 이벤트의 Y 좌표를 지정합니다
액세스 함수:
| int | y() const |
멤버 함수 설명서
[explicit] QWheelEvent::QWheelEvent(const QWheelEvent &e)
e 의 QWheelEvent 인스턴스를 기반으로 새로운 QWheelEvent 인스턴스를 생성합니다.
QPoint QWheelEvent::angleDelta() const
휠이 회전된 거리를 8분의 1도 단위로 반환합니다. 양수 값은 휠이 앞으로(사용자에서 멀어지는 방향) 회전되었음을 나타내고, 음수 값은 휠이 뒤로(사용자 쪽으로) 회전되었음을 나타냅니다.
참고: angleDelta 속성에 대한게터 함수입니다.
int QWheelEvent::buttons() const
휠 이벤트와 함께 발생할 수 있는 마우스 버튼 상태를 확인하는 데 사용되는 비트필드를 반환합니다.
참고: buttons 속성에 대한게터 함수입니다.
bool QWheelEvent::isAccepted() const
이벤트가 수락되었는지 여부를 반환합니다.
참고: ` accepted` 속성에 대한게터 함수입니다.
Qt3DInput::QWheelEvent::Modifiers QWheelEvent::modifiers() const
휠 이벤트와 함께 발생할 수 있는 키보드 수정자를 반환합니다.
참고: modifiers 속성에 대한게터 함수입니다.
void QWheelEvent::setAccepted(bool accepted)
accepted 가 true인 경우, 해당 이벤트를 수락된 것으로 설정합니다.
참고: 이벤트가 수락되면 다른 리스너로 이벤트가 더 이상 전파되지 않습니다.
참고: accepted 속성에 대한세터 함수입니다.
isAccepted()도 참조하십시오 .
QEvent::Type QWheelEvent::type() const
이벤트의 ` QEvent::Type `를 반환합니다.
int QWheelEvent::x() const
마우스 이벤트의 x 좌표를 반환합니다.
참고: x 속성에 대한게터 함수입니다.
int QWheelEvent::y() const
마우스 이벤트의 x 좌표를 반환합니다.
참고: y 속성에 대한게터 함수입니다.
© 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.