Basic touch display based input handler. 更多...
头: | #include <QTouch3DInputHandler> |
qmake: | QT += datavisualization |
Since: | QtDataVisualization 1.0 |
实例化: | TouchInputHandler3D |
继承: | Q3DInputHandler |
该类在 QtDataVisualization 1.0 引入。
QTouch3DInputHandler (QObject * parent = nullptr) | |
virtual | ~QTouch3DInputHandler () |
virtual void | touchEvent (QTouchEvent * event ) override |
QTouch3DInputHandler is the basic input handler for touch screen devices.
Default touch input handler has the following functionalty:
Gesture | 动作 |
---|---|
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 选定模式 . |
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. 注意: Secondary view is available only for Q3DBars and Q3DSurface 图形。 |
Rotation, zoom, and selection can each be individually disabled using corresponding Q3DInputHandler 特性。
Constructs the basic touch display input handler. An optional parent 参数可以给出,然后会被传递给 QObject 构造函数。
[虚拟]
QTouch3DInputHandler::
~QTouch3DInputHandler
()
Destroys the input handler.
[override virtual]
void
QTouch3DInputHandler::
touchEvent
(
QTouchEvent
*
event
)
重实现: QAbstract3DInputHandler::touchEvent (QTouchEvent *event).
Override this to change handling of touch events. Touch event is given in the event .