zui docs v0.0.5
GitHub ↗
Drawing and interaction Native Qt

Selection Rectangle

Selection Rectangle is a native Zui component in the drawing and interaction catalog, with 4 component-specific properties.

Usage

Ruby example

Paste this complete Builder example inside the app surface from the Quickstart. Replace illustrative asset paths with files from your project.

Ruby
table = table_view [{ name: "Ada" }, { name: "Grace" }], columns: [{ key: :name, label: "Name" }], selection_mode: :extended
selection_rectangle table, mode: :drag
API

Component properties

4 component-specific values, plus shared item and layout properties.

targetTarget configuration for Selection Rectangle.property
modeMode configuration for Selection Rectangle.property
enabledEnabled configuration for Selection Rectangle.property
visibleVisible configuration for Selection Rectangle.property
Show 15 shared item properties
opacityscalerotationzwidthheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

Subscribe with on widget, :event and keep behavior in Ruby.

active_changeNative event payload
selection_changeNative event payload