Obsolete Members for QWheelEvent

以下成员源于类 QWheelEvent 已过时。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

公共函数

(obsolete) 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) int delta () const
(obsolete) Qt::Orientation orientation () const

成员函数文档编制

QWheelEvent:: QWheelEvent (const QPointF & pos , const QPointF & globalPos , int delta , Qt::MouseButtons buttons , Qt::KeyboardModifiers modifiers , Qt::Orientation orient = Qt::Vertical)

构造滚轮事件对象。

Use the constructor taking angleDelta and pixelDelta QPoints 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.

另请参阅 pos (), pixelDelta (),和 angleDelta ().

QWheelEvent:: QWheelEvent (const QPointF & pos , int delta , Qt::MouseButtons buttons , Qt::KeyboardModifiers modifiers , Qt::Orientation orient = Qt::Vertical)

构造滚轮事件对象。

Use the constructor taking angleDelta and pixelDelta QPoints instead.

The position, pos , is the location of the mouse cursor within the widget. The globalPos () 被初始化为 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.

另请参阅 pos (), pixelDelta (),和 angleDelta ().

int QWheelEvent:: delta () const

This function has been deprecated, use pixelDelta () 或 angleDelta () 代替。

Qt::Orientation QWheelEvent:: orientation () const

Returns the wheel's orientation.

使用 angleDelta () 代替。