zui docs v0.0.5
GitHub ↗
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.

Ruby
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.property
enabledEnabled configuration for Drop Area.property
widthWidth configuration for Drop Area.property
heightHeight configuration for Drop Area.property
visibleVisible configuration for Drop Area.property
Show 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