PolygonHandles QML Type

Interaction overlay for a polygon region of interest. More...

Import Statement: import QuickGraphLib.GraphItems
Inherits:

Item

Properties

Signals

Detailed Description

PolygonHandles provides selection, body dragging and vertex handles for a closed list of points. It does not own the point data; instead it emits movement signals so applications can update their own model.

Property Documentation

handleHitSize : real

The mouse hit target size of vertex handles.


handleSize : real

The visual size of vertex handles.


handles : var [read-only]

GraphHandle objects rendered by this item.


hitPadding : real

The body hit target padding in pixels.


movable : bool

Whether dragging the polygon body should emit movement signals.


points : var [required]

Polygon vertices in data coordinates.


vertexHandleDelegate : Component

Optional visual delegate used for vertex handles.

The delegate can read the handle state through parent.handle.


vertexHandleShape : int

The default shape used for vertex resize handles.


vertexHandlesMovable : bool

Whether vertex handles can move individual points.


Signal Documentation

moved(point delta)

Emitted when the polygon body has moved by delta in data coordinates.

Note: The corresponding handler is onMoved.


pointMoved(int index, point position)

Emitted when point index has moved to position in data coordinates.

Note: The corresponding handler is onPointMoved.