QTouch3DInputHandler Class

Basic touch display based input handler. More...

Header: #include <QTouch3DInputHandler>
CMake: find_package(Qt6 REQUIRED COMPONENTS DataVisualization)
target_link_libraries(mytarget PRIVATE Qt6::DataVisualization)
qmake: QT += datavisualization
Since: QtDataVisualization 1.0
In QML: TouchInputHandler3D
Inherits: Q3DInputHandler

Public Functions

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

Reimplemented Public Functions

virtual void touchEvent(QTouchEvent *event) override

Detailed Description

QTouch3DInputHandler is the basic input handler for touch screen devices.

Default touch input handler has the following functionalty:

GestureAction
Touch-And-MoveRotate graph within limits set for Q3DCamera
TapSelect the item tapped or remove selection if none. May open the secondary view depending on the selection mode.
Tap-And-HoldSame as tap.
PinchZoom in/out within the allowable zoom range set for Q3DCamera.
Tap on the primary view when the secondary view is visibleCloses the secondary view.

Note: Secondary view is available only for Q3DBars and Q3DSurface graphs.

Rotation, zoom, and selection can each be individually disabled using corresponding Q3DInputHandler properties.

Member Function Documentation

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

Constructs the basic touch display input handler. An optional parent parameter can be given and is then passed to QObject constructor.

[virtual noexcept] QTouch3DInputHandler::~QTouch3DInputHandler()

Destroys the input handler.

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

Reimplements: QAbstract3DInputHandler::touchEvent(QTouchEvent *event).

Override this to change handling of touch events. Touch event is given in the event.

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