QWheelEvent Class▲
- 
					Header: Qt3DInput/QWheelEvent 
- 
					CMake: find_package(Qt6 REQUIRED COMPONENTS 3dinput) target_link_libraries(mytarget PRIVATE Qt6::3dinput) 
- 
					qmake: QT += 3dinput 
- 
					Inherited By: 
- 
					Instantiated By: qml-qt3d-input-wheelevent.xml 
- 
					Inherits: QObject 
Detailed Description▲
Mouse wheel events occur when the mouse is rotated.
See Also▲
See also QKeyEvent, QMouseEvent, QMouseHandler
Member Type Documentation▲
enum QWheelEvent::Buttons▲
| Constant | |
|---|---|
| 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▲
| Constant | |
|---|---|
| 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 | 
Property Documentation▲
accepted : bool▲
Specifies if the mouse wheel event has been accepted
Access functions:
- 
							bool isAccepted() const 
- 
							void setAccepted(bool accepted) 
[read-only] angleDelta : const QPoint▲
[read-only] buttons : const int▲
Access functions:
- 
							int buttons() const 
[read-only] modifiers : const Qt3DInput::QWheelEvent::Modifiers▲
Specifies if any modifiers were applied to the mouse wheel event
Access functions:
- 
							modifiers() const 
[read-only] x : const int▲
[read-only] y : const int▲
Member Function Documentation▲
[explicit] QWheelEvent::QWheelEvent(const ::QWheelEvent &e)▲
Constructs a new QWheelEvent instance from the QWheelEvent e.
QPoint QWheelEvent::angleDelta() const▲
Returns the distance that the wheel is rotated, in eighths of a degree. A positive value indicates that the wheel was rotated forward (away from the user), a negative value indicates the wheel was rotated backward (toward the user).
Getter function for property angleDelta.
int QWheelEvent::buttons() const▲
Getter function for property buttons.
bool QWheelEvent::isAccepted() const▲
Returns whether the event was accepted.
Getter function for property accepted.
Qt3DInput::QWheelEvent::Modifiers QWheelEvent::modifiers() const▲
Returns the keyboard modifiers that may be accompanying the wheel event.
Getter function for property modifiers.
void QWheelEvent::setAccepted(bool accepted)▲
Sets the event as accepted if accepted is true.
When an event is accepted, it will prevent further propagation to other listeners.
Setter function for property accepted.
See Also▲
See also isAccepted()
QEvent::Type QWheelEvent::type() const▲
Returns the QEvent::Type of the event.
int QWheelEvent::x() const▲
Returns the x position of the mouse event.
Getter function for property x.
int QWheelEvent::y() const▲
Returns the x position of the mouse event.
Getter function for property y.




