QTapAndHoldGesture Class
QTapAndHoldGesture クラスは、ユーザーが行うタップ&ホールド(別名:ロングタップ)のジェスチャーを定義しています。詳細...
| ヘッダー: | #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 におけるジェスチャー処理の概要およびアプリケーションでのジェスチャーの使用方法については、『Qt Widgets およびグラフィックスビューにおけるジェスチャー』ドキュメントを参照してください。
「 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()も参照してください 。
© 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.