LineSegmentHandles QML Type

Interaction overlay for a line segment region of interest. More...

Import Statement: import QuickGraphLib.GraphItems
Inherits:

Item

Properties

Signals

Detailed Description

LineSegmentHandles provides selection, body dragging and optional handles for a line segment. It does not own the segment data; instead it emits movement signals so applications can update their own model.

Property Documentation

centerHandle : alias [read-only]

A direct reference to the optional center move handle.


centerHandleDelegate : Component

Optional visual delegate used for the center move handle.

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


centerHandleShape : int

The default shape used for the center move handle.


centerHandleSize : real

The visual size and hit target size of the center handle.


endpointHandleDelegate : Component

Optional visual delegate used for endpoint resize handles.

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


endpointHandleShape : int

The default shape used for endpoint resize handles.


endpointHandlesMovable : bool

Whether endpoint handles can be moved.


handleMode : int

Which built-in handles should be shown.


handleSize : real

The visual size and hit target size of endpoint handles.


handles : var [read-only]

GraphHandle objects rendered by this item.


hitWidth : real

The body hit target width in pixels.


movable : bool

Whether dragging the segment body should emit movement signals.


point1 : point [required]

The first endpoint in data coordinates.


point2 : point [required]

The second endpoint in data coordinates.


point1Handle : alias [read-only]

A direct reference to the first endpoint resize handle.


point2Handle : alias [read-only]

A direct reference to the second endpoint resize handle.


Signal Documentation

moved(point delta)

Emitted when the segment body or move handle has moved by delta in data coordinates.

Note: The corresponding handler is onMoved.


point1Moved(point position)

Emitted when the first endpoint has moved to point.

Note: The corresponding handler is onPoint1Moved.


point2Moved(point position)

Emitted when the second endpoint has moved to point.

Note: The corresponding handler is onPoint2Moved.