Q3DInputHandler#

Basic wheel mouse based input handler. More

Inheritance diagram of PySide6.QtDataVisualization.Q3DInputHandler

Inherited by: QTouch3DInputHandler

Synopsis#

Properties#

  • rotationEnabled - Whether this input handler allows graph rotation

  • selectionEnabled - Whether this input handler allows selection from the graph

  • zoomAtTargetEnabled - Whether zooming should change the camera target so that the zoomed point of the graph stays at the same location after the zoom

  • zoomEnabled - Whether this input handler allows graph zooming

Functions#

Signals#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

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.

Note

Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.

property PᅟySide6.QtDataVisualization.Q3DInputHandler.rotationEnabled: bool#

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

Defaults to true.

Access functions:
property PᅟySide6.QtDataVisualization.Q3DInputHandler.selectionEnabled: bool#

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

Defaults to true.

Access functions:
property PᅟySide6.QtDataVisualization.Q3DInputHandler.zoomAtTargetEnabled: 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.

Access functions:
property PᅟySide6.QtDataVisualization.Q3DInputHandler.zoomEnabled: bool#

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

Defaults to true.

Access functions:
PySide6.QtDataVisualization.Q3DInputHandler.isRotationEnabled()#
Return type:

bool

Getter of property rotationEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.isSelectionEnabled()#
Return type:

bool

Getter of property selectionEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.isZoomAtTargetEnabled()#
Return type:

bool

Getter of property zoomAtTargetEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.isZoomEnabled()#
Return type:

bool

Getter of property zoomEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.rotationEnabledChanged(enable)#
Parameters:

enable – bool

Notification signal of property rotationEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.selectionEnabledChanged(enable)#
Parameters:

enable – bool

Notification signal of property selectionEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.setRotationEnabled(enable)#
Parameters:

enable – bool

Setter of property rotationEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.setSelectionEnabled(enable)#
Parameters:

enable – bool

Setter of property selectionEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.setZoomAtTargetEnabled(enable)#
Parameters:

enable – bool

Setter of property zoomAtTargetEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.setZoomEnabled(enable)#
Parameters:

enable – bool

See also

isZoomEnabled()

Setter of property zoomEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.zoomAtTargetEnabledChanged(enable)#
Parameters:

enable – bool

Notification signal of property zoomAtTargetEnabled .

PySide6.QtDataVisualization.Q3DInputHandler.zoomEnabledChanged(enable)#
Parameters:

enable – bool

Notification signal of property zoomEnabled .