Q3DInputHandler#
Basic wheel mouse based input handler. More…
Inherited by: QTouch3DInputHandler
Synopsis#
Properties#
rotationEnabled
- Whether this input handler allows graph rotationselectionEnabled
- Whether this input handler allows selection from the graphzoomAtTargetEnabled
- Whether zooming should change the camera target so that the zoomed point of the graph stays at the same location after the zoomzoomEnabled
- Whether this input handler allows graph zooming
Functions#
def
isRotationEnabled
()def
isSelectionEnabled
()def
isZoomAtTargetEnabled
()def
isZoomEnabled
()def
setRotationEnabled
(enable)def
setSelectionEnabled
(enable)def
setZoomAtTargetEnabled
(enable)def
setZoomEnabled
(enable)
Signals#
def
rotationEnabledChanged
(enable)def
selectionEnabledChanged
(enable)def
zoomAtTargetEnabledChanged
(enable)def
zoomEnabledChanged
(enable)
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
andQ3DSurface
graphs.
Rotation, zoom, and selection can each be individually disabled using corresponding properties of this class.
- class PySide6.QtDataVisualization.Q3DInputHandler([parent=None])#
- Parameters:
parent –
PySide6.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:
setRotationEnabled
(enable)Signal
rotationEnabledChanged
(enable)
- property PᅟySide6.QtDataVisualization.Q3DInputHandler.selectionEnabled: bool#
This property holds Whether this input handler allows selection from the graph..
Defaults to true
.
- Access functions:
setSelectionEnabled
(enable)Signal
selectionEnabledChanged
(enable)
- 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:
setZoomAtTargetEnabled
(enable)Signal
zoomAtTargetEnabledChanged
(enable)
- property PᅟySide6.QtDataVisualization.Q3DInputHandler.zoomEnabled: bool#
This property holds Whether this input handler allows graph zooming..
Defaults to true
.
- Access functions:
setZoomEnabled
(enable)Signal
zoomEnabledChanged
(enable)
- 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
See also
Setter of property rotationEnabled
.
- PySide6.QtDataVisualization.Q3DInputHandler.setSelectionEnabled(enable)#
- Parameters:
enable – bool
See also
Setter of property selectionEnabled
.
- PySide6.QtDataVisualization.Q3DInputHandler.setZoomAtTargetEnabled(enable)#
- Parameters:
enable – bool
See also
Setter of property zoomAtTargetEnabled
.
- PySide6.QtDataVisualization.Q3DInputHandler.setZoomEnabled(enable)#
- Parameters:
enable – bool
See also
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
.