Olivier Goffart 8415cf02ba Initial commit
2025-06-27 18:04:43 +02:00
2025-06-27 18:04:43 +02:00
2025-06-27 18:04:43 +02:00
2025-06-27 18:04:43 +02:00
2025-06-27 18:04:43 +02:00
2025-06-27 18:04:43 +02:00
2025-06-27 18:04:43 +02:00
2025-06-27 18:04:43 +02:00

Material Components for Slint C++ Template

A template for a C++ Application using Slint with material components. Based on the material gallery.

About

This template helps you get started developing a C++ application with Slint as a toolkit for the user interface and the material component set. It demonstrates the integration between the .slint UI markup and C++ code, how to react to callbacks, get and set properties, and use of all available material components for Slint.

Disclaimer

The material components are currently available as a technical preview. Some components are still missing and changes to the api are possible. We will inform as soon as the component set is read for release.

Usage

We recommend using an IDE for development, along with our LSP-based IDE integration for .slint files. You can also load this project directly in Visual Studio Code and install our Slint extension.

  1. Install the pre-requisites

  2. Clone this repository

    git clone --recurse-submodules https://github.com/slint-ui/material-cpp-template.git my-project
    cd my-project
    

Run your application on desktop

  1. Build

    mkdir build && cd build
    cmake .. -G Ninja
    cmake --build .
    
  2. Run the application binary:

    ./my_application
    

Next Steps

We hope that this template helps you get started, and that you enjoy exploring making user interfaces with Slint. To learn more about the Slint APIs and the .slint markup language, check out our online documentation. Check out also the material components documentation

Don't forget to replace the contents of this readme with your own project details.

Description
A template for a C++ Application using Slint with material components. Based on the material gallery.
Readme 388 KiB
Languages
Slint 99.4%
CMake 0.5%