QTouch3DInputHandler Class

Basic touch display based input handler. 更多...

頭: #include <QTouch3DInputHandler>
Since: QtDataVisualization 1.0
實例化: TouchInputHandler3D
繼承: Q3DInputHandler

公共函數

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

重實現公共函數

virtual void touchEvent (QTouchEvent * event )

靜態公共成員

const QMetaObject staticMetaObject

額外繼承成員

詳細描述

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 動作
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 特性。

成員函數文檔編製

QTouch3DInputHandler:: QTouch3DInputHandler ( QObject * parent = nullptr)

Constructs the basic touch display input handler. An optional parent 參數可以給齣,然後會被傳遞給 QObject 構造函數。

[虛擬] QTouch3DInputHandler:: ~QTouch3DInputHandler ()

Destroys the input handler.

[虛擬] void QTouch3DInputHandler:: touchEvent ( QTouchEvent * event )

重實現自 QAbstract3DInputHandler::touchEvent ().

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