zui docs v0.0.5
GitHub ↗
Menus, dialogs, and feedback Native Qt

Toast

A short-lived non-modal feedback message with placement, duration, severity, and dismissal.

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
toast "Deployment started", opened: true, severity: :success, duration: 3_000
API

Component properties

33 component-specific values, plus shared item and layout properties.

titleTitle configuration for Toast.property
messageMessage configuration for Toast.property
severitySeverity configuration for Toast.property
iconIcon configuration for Toast.property
openedOpened configuration for Toast.property
durationDuration configuration for Toast.property
persistentPersistent configuration for Toast.property
pause_on_hoverPause on hover configuration for Toast.property
dismiss_on_clickDismiss on click configuration for Toast.property
positionPosition configuration for Toast.property
widthWidth configuration for Toast.property
max_widthMax width configuration for Toast.property
marginMargin configuration for Toast.property
spacingSpacing configuration for Toast.property
paddingPadding configuration for Toast.property
animatedAnimated configuration for Toast.property
animation_durationAnimation duration configuration for Toast.property
easingEasing configuration for Toast.property
enabledEnabled configuration for Toast.property
backgroundBackground configuration for Toast.property
foregroundForeground configuration for Toast.property
mutedMuted configuration for Toast.property
accentAccent configuration for Toast.property
warning_colorWarning color configuration for Toast.property
error_colorError color configuration for Toast.property
success_colorSuccess color configuration for Toast.property
border_colorBorder color configuration for Toast.property
radiusRadius configuration for Toast.property
font_familyFont family configuration for Toast.property
font_sizeFont size configuration for Toast.property
title_sizeTitle size configuration for Toast.property
icon_sizeIcon size configuration for Toast.property
visibleVisible configuration for Toast.property
Show 14 shared item properties
opacityscalerotationzheightfill_widthfill_heightpreferred_widthpreferred_heightminimum_widthminimum_heightmaximum_widthmaximum_heightlayout_alignment
Interaction

Events

Subscribe with on widget, :event and keep behavior in Ruby.

timeoutNative event payload
dismissNative event payload
clickNative event payload
openNative event payload
closeNative event payload
showNative event payload
hideNative event payload
hoverNative event payload