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 () 代替。