Obsolete Members for QWheelEvent

QWheelEvent クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。

パブリック関数

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

メンバー関数のドキュメント

[deprecated in 6.0] Qt::MouseEventSource QWheelEvent::source() const

この関数はバージョン 6.0 以降、非推奨となっています。新しいコードでの使用は強くお勧めしません。

代わりに `pointingDevice()` を使用してください。

ホイールイベントの発生源に関する情報を返します。

このソースを使用すると、物理的なホイールを備えたマウスからのイベントと、タッチパッドでのフリックジェスチャなど、他の手段によって生成されたイベントとを区別することができます。この列挙型は、イベントがどこで合成されたかを示しますが、多くの場合、どのデバイスで合成されたかを知るほうが有用であるため、代わりに `pointingDevice()` を使用するようにしてください。

注:多くの プラットフォームでは、このような情報は提供されません。そのようなプラットフォームでは、常に `Qt::MouseEventNotSynthesized ` が返されます。

Qt::MouseEventSourceも参照してください 。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.