RectangleHandles QML Type

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

Import Statement: import QuickGraphLib.GraphItems
Inherits:

Item

Properties

Signals

Detailed Description

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

Property Documentation

bottomLeftHandle : alias [read-only]

A direct reference to the bottom-left corner resize handle.


bottomRightHandle : alias [read-only]

A direct reference to the bottom-right corner resize handle.


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.


cornerHandleDelegate : Component

Optional visual delegate used for corner resize handles.

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


cornerHandleShape : int

The default shape used for corner resize handles.


cornerHandlesMovable : bool

Whether corner handles can resize the rectangle.


dataRect : rect [required]

The rectangle in data coordinates.


handleMode : int

Which handles should be shown.


handleSize : real

The visual size and hit target size of corner handles.


handles : var [read-only]

GraphHandle objects rendered by this item.


minimumDataHeight : real

The minimum height emitted when resize handles are dragged toward the opposite anchor.


minimumDataWidth : real

The minimum width emitted when resize handles are dragged toward the opposite anchor.


movable : bool

Whether dragging the rectangle body should emit movement signals.


topLeftHandle : alias [read-only]

A direct reference to the top-left corner resize handle.


topRightHandle : alias [read-only]

A direct reference to the top-right corner resize handle.


Signal Documentation

moved(point delta)

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

Note: The corresponding handler is onMoved.


resized(rect dataRect)

Emitted when a corner handle has resized the rectangle to dataRect.

Note: The corresponding handler is onResized.