ZoomPanHandler QML Type

Pinch/drag handling for graph or image zoom/pan interactions. More...

Import Statement: import QuickGraphLib
Inherits:

PinchArea

Properties

Methods

Detailed Description

See also Zoomable as image and Zoomable axes.

Property Documentation

baseTransform : matrix4x4

The view transform, but in a pixel-independent form.

See also GraphArea::baseTransformFromRect.


limitMovement : bool [default: true]

When set to true, translations will not be able to leave the original viewRect of the GraphArea.


maxScale : size [default: Qt.size(10, 10)]

Maximum zoom (separate X/Y zoom limits can be set with the width/height of size).

Zooming on a particular axis can be disabled by setting the maximum scale for that axis to 1 (provided the minimum scale for that axis is left at its default of 1).


minScale : size [default: Qt.size(1, 1)]

Minimum zoom (separate X/Y zoom limits can be set with the width/height of size).


viewTransform : matrix4x4 [read-only]

The current view transform. This can be assigned to GraphArea::viewTransform.


wheelZoomFactor : double [default: 1.05]

The amount to zoom in by for 15 degrees of mouse wheel movement.

See also QWheelEvent::angleDelta.


Method Documentation

reset()

Reset to initial (1x) zoom.