QTouch3DInputHandler Class

Basic touch display based input handler. More...

Header: #include <QTouch3DInputHandler>
Since: QtDataVisualization 1.0
Instantiated By: TouchInputHandler3D
Inherits: Q3DInputHandler

Public Functions

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

Reimplemented Public Functions

virtual void touchEvent(QTouchEvent *event)

Static Public Members

const QMetaObject staticMetaObject
  • 9 static public members inherited from QObject

Additional Inherited Members

Detailed Description

Basic touch display based input handler.

QTouch3DInputHandler is the basic input handler for touch screen devices.

Default touch input handler has the following functionalty:

Gesture Action
Touch-And-Move Rotate graph within limits set for Q3DCamera
Tap Select the item tapped or remove selection if none. May open the secondary view depending on the selection mode.
Tap-And-Hold Same as tap.
Pinch Zoom in/out within the allowable zoom range set for Q3DCamera.
Tap on the primary view when the secondary view is visible Closes 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

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] QTouch3DInputHandler::~QTouch3DInputHandler()

Destroys the input handler.

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

Reimplemented from QAbstract3DInputHandler::touchEvent().

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

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.12/qtouch3dinputhandler.html