Drawing and interaction
Native Qt
Shape
Shape is a native Zui component in the drawing and interaction catalog, with 17 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.
shape "M 20 120 C 90 20, 180 20, 250 120", width: 280, height: 150, stroke: "#b7ff5a", stroke_width: 4, fill: "transparent"
API
Component properties
17 component-specific values, plus shared item and layout properties.
pathPath configuration for Shape.propertywidthWidth configuration for Shape.propertyheightHeight configuration for Shape.propertystrokeStroke configuration for Shape.propertyfillFill configuration for Shape.propertystroke_widthStroke width configuration for Shape.propertycapCap configuration for Shape.propertyjoinJoin configuration for Shape.propertyfill_ruleFill rule configuration for Shape.propertydash_patternDash pattern configuration for Shape.propertydash_offsetDash offset configuration for Shape.propertyscaleScale configuration for Shape.propertypreferred_rendererPreferred renderer configuration for Shape.propertyasynchronousAsynchronous configuration for Shape.propertycontains_modeContains mode configuration for Shape.propertyantialiasingAntialiasing configuration for Shape.propertyvisibleVisible configuration for Shape.propertyShow 13 shared item properties
enabledopacityrotationzfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction
Events
Subscribe with on widget, :event and keep behavior in Ruby.
↗
statusNative event payload↗
clickNative event payload↗
hoverNative event payload