Skip to content

Getting Started

Understanding the documentation

If you are new to Slint and want to quickly get started and learning the basics we recommend using Visual Studio Code (VS Code). VS Code is popular, free and thanks to the Slint extension it is also the easiest to get started with.

Setting up VS Code

  1. Install VS Code. Download it here.

  2. Install the Slint extension. Find it here.

  3. Create a new project based on a Slint template. This is done via the command palette (Ctrl+Shift+P).

  4. Choose your language.

Slint project structure

  • Directory.vscode/
  • Directorysrc/
    • main.cpp
  • Directoryui/
    • app-window.slint The main Slint file
  • CMakeLists.txt
  • LICENSE
  • README.md

The src folder is for the apps business logic. While the ui folder contains the Slint files that define the user interface.