QPanGesture Class
QPanGesture クラスは、ユーザーによるパンジェスチャを記述します。詳細...
ヘッダ | #include <QPanGesture> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
継承: | QGesture |
プロパティ
- acceleration : qreal
- delta : const QPointF
- lastOffset : QPointF
- offset : QPointF
パブリック機能
virtual | ~QPanGesture() |
qreal | acceleration() const |
QPointF | delta() const |
QPointF | lastOffset() const |
QPointF | offset() const |
void | setAcceleration(qreal value) |
void | setLastOffset(const QPointF &value) |
void | setOffset(const QPointF &value) |
QPinchGesture およびQSwipeGestureも参照してください 。
プロパティ ドキュメント
acceleration : qreal
このプロパティは、このジェスチャのタッチポイントの動きの加速度を保持します。
アクセス関数:
qreal | acceleration() const |
void | setAcceleration(qreal value) |
[read-only]
delta : const QPointF
このプロパティは、直前の入力位置から現在の入力位置までのオフセットを保持する。
これはoffset() とlastOffset() の違いと本質的に同じである。
アクセス関数:
QPointF | delta() const |
lastOffset : QPointF
このプロパティは、このジェスチャに対して記録された最後のオフセットを保持します。
最後のオフセットには、このジェスチャに対して以前のジェスチャ・イベントが配信されたときに、offset プロパティで報告されたユーザ入力の位置の変化が含まれます。
このジェスチャに関する情報を持つ以前のイベントが配信されなかった場合(つまり、このジェスチャオブジェクトにジェスチャの最初の動きに関する情報が含まれている場合)、このプロパティにはゼロサイズが格納されます。
アクセス関数:
QPointF | lastOffset() const |
void | setLastOffset(const QPointF &value) |
offset : QPointF
このプロパティは、最初の入力位置から現在の入力位置までのオフセットの合計を保持する。
オフセットは、入力デバイス上のジェスチャによってカバーされるユーザの入力位置の総変更を測定する。
アクセス関数:
QPointF | offset() const |
void | setOffset(const QPointF &value) |
© 2025 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.