Drawing and interaction
Container
Native Qt
Drop Area
Drop Area is a native Zui container in the drawing and interaction catalog, with 5 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.
drop_area keys: %w[files images], width: 420, height: 220 do
center { label "Drop files here" }
end
API
Component properties
5 component-specific values, plus shared item and layout properties.
keysKeys configuration for Drop Area.propertyenabledEnabled configuration for Drop Area.propertywidthWidth configuration for Drop Area.propertyheightHeight configuration for Drop Area.propertyvisibleVisible configuration for Drop Area.propertyShow 13 shared item properties
opacityscalerotationzfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction
Events
Subscribe with on widget, :event and keep behavior in Ruby.
↗
enterNative event payload↗
moveNative event payload↗
exitNative event payload↗
dropNative event payload