Obsolete Members for QWheelEvent
The following class members are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.
Public Functions
| QWheelEvent(const QPointF & pos, const QPointF & globalPos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical) (obsolete) |
| QWheelEvent(const QPointF & pos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical) (obsolete) |
Member Function Documentation
QWheelEvent::QWheelEvent(const QPointF & pos, const QPointF & globalPos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical)
Constructs a wheel event object.
Use the QPoint-based constructor instead.
The pos provides the location of the mouse cursor within the widget. The position in global coordinates is specified by globalPos. delta contains the rotation distance, modifiers holds the keyboard modifier flags at the time of the event, and orient holds the wheel's orientation.
See also pos(), pixelDelta(), angleDelta(), and state().
QWheelEvent::QWheelEvent(const QPointF & pos, int delta, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers, Qt::Orientation orient = Qt::Vertical)
Constructs a wheel event object.
Use the QPoint-based constructor instead.
The position, pos, is the location of the mouse cursor within the widget. The globalPos() is initialized to QCursor::pos() which is usually, but not always, correct. Use the other constructor if you need to specify the global position explicitly.
The buttons describe the state of the mouse buttons at the time of the event, delta contains the rotation distance, modifiers holds the keyboard modifier flags at the time of the event, and orient holds the wheel's orientation.
See also pos(), pixelDelta(), angleDelta(), and state().