Q3DInputHandler

Basic wheel mouse based input handler. More

Inheritance diagram of PySide6.QtDataVisualization.Q3DInputHandler

Inherited by: QTouch3DInputHandler

Synopsis

Functions

Signals

Detailed Description

Q3DInputHandler is the basic input handler for wheel mouse type of input devices.

Default input handler has the following functionalty:

Mouse action

Action

Drag with right button pressed

Rotate graph within limits set for Q3DCamera .

Left click

Select item under cursor or remove selection if none. May open the secondary view depending on the selection mode .

Mouse wheel

Zoom in/out within the allowable zoom range set for Q3DCamera .

Left click 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 properties of this class.

class PySide6.QtDataVisualization.Q3DInputHandler([parent=None])
Parameters

parentPySide6.QtCore.QObject

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

PySide6.QtDataVisualization.Q3DInputHandler.isRotationEnabled()
Return type

bool

This property holds Whether this input handler allows graph rotation..

Defaults to true.

PySide6.QtDataVisualization.Q3DInputHandler.isSelectionEnabled()
Return type

bool

This property holds Whether this input handler allows selection from the graph..

Defaults to true.

PySide6.QtDataVisualization.Q3DInputHandler.isZoomAtTargetEnabled()
Return type

bool

This property holds Whether zooming should change the camera target so that the zoomed point of the graph stays at the same location after the zoom..

Defaults to true.

PySide6.QtDataVisualization.Q3DInputHandler.isZoomEnabled()
Return type

bool

This property holds Whether this input handler allows graph zooming..

Defaults to true.

PySide6.QtDataVisualization.Q3DInputHandler.rotationEnabledChanged(enable)
Parameters

enable – bool

PySide6.QtDataVisualization.Q3DInputHandler.selectionEnabledChanged(enable)
Parameters

enable – bool

PySide6.QtDataVisualization.Q3DInputHandler.setRotationEnabled(enable)
Parameters

enable – bool

This property holds Whether this input handler allows graph rotation..

Defaults to true.

PySide6.QtDataVisualization.Q3DInputHandler.setSelectionEnabled(enable)
Parameters

enable – bool

This property holds Whether this input handler allows selection from the graph..

Defaults to true.

PySide6.QtDataVisualization.Q3DInputHandler.setZoomAtTargetEnabled(enable)
Parameters

enable – bool

This property holds Whether zooming should change the camera target so that the zoomed point of the graph stays at the same location after the zoom..

Defaults to true.

PySide6.QtDataVisualization.Q3DInputHandler.setZoomEnabled(enable)
Parameters

enable – bool

This property holds Whether this input handler allows graph zooming..

Defaults to true.

PySide6.QtDataVisualization.Q3DInputHandler.zoomAtTargetEnabledChanged(enable)
Parameters

enable – bool

PySide6.QtDataVisualization.Q3DInputHandler.zoomEnabledChanged(enable)
Parameters

enable – bool