OtherActive

Slint Live Preview

Live preview feature for Slint applications in Rust and C++, reloading .slint files on disk automatically.

Open source page

Field note

What it does

Slint Live Preview is a development feature for Slint applications built with Rust or C++. It replaces the ahead-of-time compiled UI with an interpreter-based component that watches .slint files and reloads them on change, preserving properties, callbacks, and models. It requires enabling the 'live-preview' Cargo feature and setting the SLINT_LIVE_PREVIEW environment variable for Rust, or building Slint from source with SLINT_FEATURE_LIVE_PREVIEW for C++.

Capabilities

Available capabilities

Tags

Tags

Ways to use it

Ways to use it

other

Rust / https://docs.slint.dev/latest/docs/slint/guide/tooling/live-preview/

other

Not filed / Not filed

Product features

Product features

Development Only

Intended for development only; not for release builds.

Error Handling

If a .slint file has a syntax error, the previous version stays on screen until fixed.

Live Preview

Preview Slint components in real-time via the LSP.

Live Reload

Automatically reloads .slint files on disk when they change.

Show Preview Code Action

Activate via code action menu or Alt+Enter to preview a component.

State Preservation

Properties, callbacks, and models are preserved during reloads.