mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-23 16:51:43 +00:00
943 B
943 B
Live-Preview
.slint files are compiled to C++ code when using the slint_target_sources() function.
This is the default and recommended for release builds.
During debugging and development, changes to .slint files requires re-compiling and re-starting the application. To speed up
modifications to the UI while connected to the applications' business logic, you can opt into enabling Live-Preview for C++:
- Compile Slint from sources. At the configure step, enable the
SLINT_FEATURE_LIVE_PREVIEWcmake option. - When compiling your application, set the
SLINT_LIVE_PREVIEW=1environment variable. - Start you application. The Slint run-time library will load and reload
.slintfiles after you've modified them on disk.