このページでは

QTouch3DInputHandler Class

基本的なタッチディスプレイ入力ハンドラ。詳細...

ヘッダー: #include <QTouch3DInputHandler>
CMake: find_package(Qt6 REQUIRED COMPONENTS DataVisualization)
target_link_libraries(mytarget PRIVATE Qt6::DataVisualization)
qmake: QT += datavisualization
バージョン: QtDataVisualization 1.0
QMLでの実装: TouchInputHandler3D
継承元: Q3DInputHandler
ステータス: 非推奨

このクラスは非推奨です。新しいコードでの使用は強く推奨しません。

パブリック関数

QTouch3DInputHandler(QObject *parent = nullptr)
virtual ~QTouch3DInputHandler()

再実装されたパブリック関数

virtual void touchEvent(QTouchEvent *event) override

詳細な説明

QTouch3DInputHandler は、タッチスクリーンデバイス用の基本的な入力ハンドラです。

デフォルトのタッチ入力ハンドラには、以下の機能があります。

ジェスチャーアクション
タッチ&移動「Q3DCamera
タップタップされた項目を選択するか、何も選択されていない場合は選択を解除します。selection mode の設定に応じて、セカンダリビューが開く場合があります。
タップして長押しタップと同じです。
ピンチQ3DCamera で設定された許容ズーム範囲内で、ズームイン/ズームアウトを行います。
セカンダリビューが表示されているときにプライマリビューをタップするセカンダリビューを閉じます。

注: セカンダリビューは 、Q3DBars およびQ3DSurface のグラフでのみ利用可能です。

回転、ズーム、および選択は、それぞれ対応するQ3DInputHandler のプロパティを使用して個別に無効にすることができます。

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

[explicit] QTouch3DInputHandler::QTouch3DInputHandler(QObject *parent = nullptr)

基本的なタッチディスプレイ入力ハンドラを作成します。オプションのparent パラメータを指定できる場合、そのパラメータはQObject のコンストラクタに渡されます。

[virtual noexcept] QTouch3DInputHandler::~QTouch3DInputHandler()

入力ハンドラを破棄します。

[override virtual] void QTouch3DInputHandler::touchEvent(QTouchEvent *event)

QAbstract3DInputHandler::touchEvent(QTouchEvent *event) を再実装します。

タッチイベントの処理を変更するには、この関数をオーバーライドしてください。タッチイベントはevent に渡されます。

© 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.