Drawing and interaction
Native Qt
Line
Line is a native Zui component in the drawing and interaction catalog, with 13 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.
line 20, 80, 300, 80, stroke: "#66e3ff", stroke_width: 3, dash_pattern: [8, 4]
API
Component properties
13 component-specific values, plus shared item and layout properties.
x1X1 configuration for Line.propertyy1Y1 configuration for Line.propertyx2X2 configuration for Line.propertyy2Y2 configuration for Line.propertywidthWidth configuration for Line.propertyheightHeight configuration for Line.propertystrokeStroke configuration for Line.propertystroke_widthStroke width configuration for Line.propertycapCap configuration for Line.propertydash_patternDash pattern configuration for Line.propertydash_offsetDash offset configuration for Line.propertyantialiasingAntialiasing configuration for Line.propertyvisibleVisible configuration for Line.propertyShow 14 shared item properties
enabledopacityscalerotationzfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction
Events
Subscribe with on widget, :event and keep behavior in Ruby.
↗
clickNative event payload↗
hoverNative event payload