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.
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.propertymodeMode configuration for Selection Rectangle.propertyenabledEnabled configuration for Selection Rectangle.propertyvisibleVisible configuration for Selection Rectangle.propertyShow 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