Skip to content

Getting started

This tutorial shows you how to use the languages that Slint supports as the host programming language.

We recommend using our editor integrations for Slint ↗ for following this tutorial.

Slint has application templates you can use to create a project with dependencies already set up that follows recommended best practices.

We recommend using rust-analyzer ↗ and our editor integrations for Slint ↗ for following this tutorial.

  1. Download and extract the ZIP archive ↗ of the Rust Template ↗.
  2. Rename the extracted directory and change into it:
Terminal window
mv slint-rust-template-main memory
cd memory
bash

Replace the contents of src/main.rs with the following:

slint::include_modules!();
fn main() -> Result<(), slint::PlatformError> {
let main_window = MainWindow::new()?;
main_window.run()
}
rust

Replace the contents of ui/app-window.slint with the following:

memory.slint
export component MainWindow inherits Window {
Text {
text: "hello world";
color: green;
}
}
slint

Run the example with cargo run and a window appears with the green “Hello World” greeting.

Screenshot of initial tutorial app showing Hello World


© 2026 SixtyFPS GmbH