QTouch3DInputHandler Class
Basic touch display based input handler. More...
Header: | #include <QTouch3DInputHandler> |
Since: | QtDataVisualization 1.0 |
Instantiated By: | TouchInputHandler3D |
Inherits: | Q3DInputHandler |
This class was introduced in QtDataVisualization 1.0.
Public Functions
QTouch3DInputHandler(QObject *parent = nullptr) | |
virtual | ~QTouch3DInputHandler() |
Reimplemented Public Functions
virtual void | touchEvent(QTouchEvent *event) override |
- 12 public functions inherited from Q3DInputHandler
- 12 public functions inherited from QAbstract3DInputHandler
- 30 public functions inherited from QObject
Related Non-Members
typedef | QObjectList |
QList<T> | qFindChildren(const QObject *obj, const QRegExp ®Exp) |
T | qobject_cast(QObject *object) |
T | qobject_cast(const QObject *object) |
Macros
QT_NO_NARROWING_CONVERSIONS_IN_CONNECT | |
Q_CLASSINFO(Name, Value) | |
Q_DISABLE_COPY(Class) | |
Q_DISABLE_COPY_MOVE(Class) | |
Q_DISABLE_MOVE(Class) | |
Q_EMIT | |
Q_ENUM(...) | |
Q_ENUM_NS(...) | |
Q_FLAG(...) | |
Q_FLAG_NS(...) | |
Q_GADGET | |
Q_INTERFACES(...) | |
Q_INVOKABLE | |
Q_NAMESPACE | |
Q_OBJECT | |
Q_PROPERTY(...) | |
Q_REVISION | |
Q_SET_OBJECT_NAME(Object) | |
Q_SIGNAL | |
Q_SIGNALS | |
Q_SLOT | |
Q_SLOTS |
Additional Inherited Members
- 4 properties inherited from Q3DInputHandler
- 3 properties inherited from QAbstract3DInputHandler
- 1 property inherited from QObject
- 1 public slot inherited from QObject
- 4 signals inherited from Q3DInputHandler
- 3 signals inherited from QAbstract3DInputHandler
- 2 signals inherited from QObject
- 9 static public members inherited from QObject
- 4 protected functions inherited from QAbstract3DInputHandler
- 9 protected functions inherited from QObject
Detailed Description
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.
[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.