Q3DWheelEvent Class

(Qt3D::Q3DWheelEvent)

The Qt3D::Q3DWheelEvent contains parameters that describe a mouse wheel event. More...

Header: #include <Q3DWheelEvent>
Since: Qt 5.5
Inherits: QObject

Public Types

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

Properties

  • modifier : const Qt3D::Q3DWheelEvent::Modifiers
  • x : const int
  • y : const int
  • 1 property inherited from QObject

Public Functions

Q3DWheelEvent(const QWheelEvent & e)
~Q3DWheelEvent()
QPoint angleDelta() const
int buttons() const
bool isAccepted() const
Modifiers modifier() const
void setAccepted(bool accepted)
QEvent::Type type() const
int x() const
int y() const
  • 31 public functions inherited from QObject

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 2 signals inherited from QObject
  • 11 static public members inherited from QObject
  • 9 protected functions inherited from QObject

Detailed Description

The Qt3D::Q3DWheelEvent contains parameters that describe a mouse wheel event.

Mouse wheel events occur when the mouse is rotated.

See also Qt3D::Q3DKeyEvent, Qt3D::Q3DMouseEvent, and Qt3D::QMouseInput.

Member Type Documentation

enum Q3DWheelEvent::Buttons

enum Q3DWheelEvent::Modifiers

Property Documentation

accepted : bool

Access functions:

bool isAccepted() const
void setAccepted(bool accepted)

angleDelta : const QPoint

Access functions:

QPoint angleDelta() const

buttons : const int

Access functions:

int buttons() const

modifier : const Qt3D::Q3DWheelEvent::Modifiers

Access functions:

Modifiers modifier() const

x : const int

Access functions:

int x() const

y : const int

Access functions:

int y() const

Member Function Documentation

Q3DWheelEvent::Q3DWheelEvent(const QWheelEvent & e)

Constructs a new Qt3D::Q3DWheelEvent instance from the QWheelEvent e.

Q3DWheelEvent::~Q3DWheelEvent()

QPoint Q3DWheelEvent::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).

Note: Getter function for property angleDelta.

int Q3DWheelEvent::buttons() const

Returns a bitfield to be used to check for mouse buttons that may be accompanying the wheel event.

Note: Getter function for property buttons.

bool Q3DWheelEvent::isAccepted() const

Returns whether the event was accepted.

Note: Getter function for property accepted.

Modifiers Q3DWheelEvent::modifier() const

Returns the keyboard modifier that may be accompanying the wheel event.

Note: Getter function for property modifier.

void Q3DWheelEvent::setAccepted(bool accepted)

Sets the event as accepted if accepted is true.

Note: When an event is accepted, it will prevent further propagation to other listeners.

Note: Setter function for property accepted.

See also isAccepted().

QEvent::Type Q3DWheelEvent::type() const

Returns the QEvent::Type of the event.

int Q3DWheelEvent::x() const

Returns the x position of the mouse event.

Note: Getter function for property x.

int Q3DWheelEvent::y() const

Returns the x position of the mouse event.

Note: Getter function for property y.

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