QTapAndHoldGesture Class
QTapAndHoldGesture クラスは、ユーザーによるタップ&ホールド(別名 LongTap)ジェスチャーを記述します。詳細...
ヘッダー | #include <QTapAndHoldGesture> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
qmake: | QT += widgets |
継承: | QGesture |
プロパティ
- position : QPointF
パブリック関数
virtual | ~QTapAndHoldGesture() |
QPointF | position() const |
void | setPosition(const QPointF &pos) |
静的パブリックメンバ
void | setTimeout(int msecs) |
int | timeout() |
詳しい説明
Qt におけるジェスチャ処理の概要と、アプリケーションでジェスチャを使用するための情報については、「ウィジェットとグラフィックスビューにおけるジェスチャ」を参照してください。
QPanGesture およびQPinchGestureも参照してください 。
プロパティ ドキュメント
position : QPointF
このプロパティは、タップの位置を保持する。
関数にアクセスします:
QPointF | position() const |
void | setPosition(const QPointF &pos) |
メンバ関数説明
[virtual noexcept]
QTapAndHoldGesture::~QTapAndHoldGesture()
破壊者。
[static]
void QTapAndHoldGesture::setTimeout(int msecs)
ジェスチャーがトリガーされるまでのタイムアウトをミリ秒単位で設定します。
レコグナイザーはタッチダウンを検出し、msecs 後にタッチがまだダウンしている場合、QTapAndHoldGesture をトリガーします。 デフォルト値は 700 ミリ秒です。
timeout()も参照してください 。
[static]
int QTapAndHoldGesture::timeout()
ジェスチャーがトリガーされるまでのタイムアウトをミリ秒単位で取得します。
レコグナイザはタッチダウンを検出し、timeout()後にタッチがまだダウンしている場合、QTapAndHoldGesture 。 デフォルト値は700ミリ秒です。
setTimeout()も参照してください 。
© 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.