QWheelEvent Class

class Qt3DInput::QWheelEvent

The QWheelEvent class contains parameters that describe a mouse wheel event. More...

Header: #include <Qt3DInput/QWheelEvent>
qmake: QT += 3dinput
Since: Qt 5.5
Instantiated By: WheelEvent
Inherits: QObject

This class was introduced in Qt 5.5.

Public Types

enum Buttons { LeftButton, RightButton, MiddleButton, BackButton, NoButton }
enum Modifiers { NoModifier, ShiftModifier, ControlModifier, AltModifier, MetaModifier, KeypadModifier }

Properties

  • modifiers : const Qt3DInput::QWheelEvent::Modifiers
  • x : const int
  • y : const int

Public Functions

QPoint angleDelta() const
int buttons() const
bool isAccepted() const
Qt3DInput::QWheelEvent::Modifiers modifiers() const
void setAccepted(bool accepted)
int x() const
int y() const
typedef QWheelEventPtr

Detailed Description

Mouse wheel events occur when the mouse is rotated.

See also QKeyEvent, QMouseEvent, and QMouseHandler.

Member Type Documentation

enum QWheelEvent::Buttons

ConstantValue
Qt3DInput::QWheelEvent::LeftButtonQt::LeftButton
Qt3DInput::QWheelEvent::RightButtonQt::RightButton
Qt3DInput::QWheelEvent::MiddleButtonQt::MiddleButton
Qt3DInput::QWheelEvent::BackButtonQt::BackButton
Qt3DInput::QWheelEvent::NoButtonQt::NoButton

enum QWheelEvent::Modifiers

ConstantValue
Qt3DInput::QWheelEvent::NoModifierQt::NoModifier
Qt3DInput::QWheelEvent::ShiftModifierQt::ShiftModifier
Qt3DInput::QWheelEvent::ControlModifierQt::ControlModifier
Qt3DInput::QWheelEvent::AltModifierQt::AltModifier
Qt3DInput::QWheelEvent::MetaModifierQt::MetaModifier
Qt3DInput::QWheelEvent::KeypadModifierQt::KeypadModifier

Property Documentation

accepted : bool

Specifies if the mouse wheel event has been accepted

Access functions:

bool isAccepted() const
void setAccepted(bool accepted)

angleDelta : const QPoint

Specifies The change wheel angle of the mouse wheel event

Access functions:

QPoint angleDelta() const

buttons : const int

Specifies the button if present in the mouse wheel event

Access functions:

int buttons() const

modifiers : const Qt3DInput::QWheelEvent::Modifiers

Specifies if any modifiers were applied to the mouse wheel event

Access functions:

Qt3DInput::QWheelEvent::Modifiers modifiers() const

x : const int

Specifies The X coordinate of the mouse wheel event

Access functions:

int x() const

y : const int

Specifies The Y coordinate of the mouse wheel event

Access functions:

int y() const

Related Non-Members

typedef QWheelEventPtr

A shared pointer for QWheelEvent.