Obsolete Members for QWheelEvent

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

公共函数

(deprecated (6.0)) Qt::MouseEventSource source () const

成员函数文档编制

Qt::MouseEventSource QWheelEvent:: source () const

This function is deprecated since 6.0. We strongly advise against using it in new code.

使用 pointingDevice () 代替。

返回滚轮事件源的有关信息。

The source can be used to distinguish between events that come from a mouse with a physical wheel and events that are generated by some other means, such as a flick gesture on a touchpad. This enum tells you from where it was synthesized; but often it's more useful to know from which device it was synthesized, so try to use pointingDevice () 代替。

注意: 很多平台不提供这种信息。在这种平台 Qt::MouseEventNotSynthesized 始终被返回。

另请参阅 Qt::MouseEventSource .