QWheelEvent Class
class Qt3DInput::QWheelEventQWheelEvent 클래스에는 마우스 휠 이벤트를 설명하는 매개 변수가 포함되어 있습니다. 더 보기...
Header: | #include <Qt3DInput/QWheelEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) |
qmake: | QT += 3dinput |
QML에서: | WheelEvent |
상속합니다: | QObject |
상태: | Deprecated |
공용 유형
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
상수 | Value |
---|---|
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)
QWheelEvent e 에서 새 QWheelEvent 인스턴스를 생성합니다.
QPoint QWheelEvent::angleDelta() const
휠이 회전한 거리를 8분의 1도 단위로 반환합니다. 양수 값은 휠이 앞으로(사용자로부터 멀어짐) 회전했음을 나타내고 음수 값은 휠이 뒤로(사용자 쪽으로) 회전했음을 나타냅니다.
참고: 각도 델타 프로퍼티에 대한 구하기 함수.
int QWheelEvent::buttons() const
휠 이벤트에 수반될 수 있는 마우스 버튼을 확인하는 데 사용할 비트필드를 반환합니다.
참고: 프로퍼티 버튼에 대한 게터 함수입니다.
bool QWheelEvent::isAccepted() const
이벤트가 수락되었는지 여부를 반환합니다.
참고: 속성에 대한 게터 함수 accepted.
Qt3DInput::QWheelEvent::Modifiers QWheelEvent::modifiers() const
휠 이벤트에 수반될 수 있는 키보드 수정자를 반환합니다.
참고: 프로퍼티 수정자에 대한 게터 함수입니다.
void QWheelEvent::setAccepted(bool accepted)
accepted 이 참이면 이벤트를 수락한 것으로 설정합니다.
참고: 이벤트가 수락되면 다른 리스너에게 더 이상 전파되지 않습니다.
참고: accepted 속성에 대한 설정자 함수.
isAccepted()도 참조하세요 .
QEvent::Type QWheelEvent::type() const
이벤트의 QEvent::Type 를 반환합니다.
int QWheelEvent::x() const
마우스 이벤트의 x 위치를 반환합니다.
참고: x 프로퍼티에 대한 게터 함수입니다.
int QWheelEvent::y() const
마우스 이벤트의 x 위치를 반환합니다.
참고: 속성 y에 대한 게터 함수입니다.
© 2025 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.