以下成員源於類 QWheelEvent 被棄用。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(deprecated (6.0))
Qt::MouseEventSource
|
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 .