Experimental Features
Experimental features are not part of stable Slint and may change at any time. Their purpose is to let us try new ideas and collect feedback before we commit to them.
Experimental features are opt-in, one at a time.
To turn them on for a whole project, list them in experimental-features in a project file:
{ "experimental-features": ["interfaces", "match"]}Without a project file, or to add to its list, set the SLINT_ENABLE_EXPERIMENTAL_FEATURES environment variable to a comma-separated list of feature names.
The compiler reports an error for an unknown feature name.
slint-compiler, slint-viewer, and the interpreter APIs also list the enabled features in an informational message.
Each experimental feature’s page gives the name to enable.
The generated Rust new_with_existing_window() and new_with_context() constructors need new-with-existing-window.
Enabling Experimental Features
Section titled “Enabling Experimental Features”Set the SLINT_ENABLE_EXPERIMENTAL_FEATURES environment variable when building your application:
SLINT_ENABLE_EXPERIMENTAL_FEATURES=interfaces,match cargo buildSet the SLINT_ENABLE_EXPERIMENTAL_FEATURES environment variable when building your application:
SLINT_ENABLE_EXPERIMENTAL_FEATURES=interfaces,match cmake --build .The experimental C++ APIs are separate.
To use them, pass the -DSLINT_FEATURE_EXPERIMENTAL=ON flag to CMake when configuring Slint.
This only works when building Slint from sources.
Set the SLINT_ENABLE_EXPERIMENTAL_FEATURES environment variable when running your application, since the Slint compiler runs at load time:
SLINT_ENABLE_EXPERIMENTAL_FEATURES=interfaces,match node app.jsSet the SLINT_ENABLE_EXPERIMENTAL_FEATURES environment variable when running your application, since the Slint compiler runs at load time:
SLINT_ENABLE_EXPERIMENTAL_FEATURES=interfaces,match python app.pyThe SLINT_ENABLE_EXPERIMENTAL_FEATURES variable also enables experimental features in slint-viewer.
slint-lsp reads it at startup too.
Editors can also set the experimental workspace option to an array of feature names.
SlintPad
Section titled “SlintPad”Add ?EXPERIMENTAL= and a comma-separated list of feature names to the SlintPad URL: snapshots.slint.com/master/editor/?EXPERIMENTAL=interfaces,match ↗.
© 2026 SixtyFPS GmbH