{"id":28338233,"url":"https://github.com/slint-ui/slint-cpp-template","last_synced_at":"2025-08-05T12:26:22.986Z","repository":{"id":44504696,"uuid":"409537561","full_name":"slint-ui/slint-cpp-template","owner":"slint-ui","description":"A template for a C++ Application using Slint","archived":false,"fork":false,"pushed_at":"2024-09-23T11:48:15.000Z","size":17,"stargazers_count":53,"open_issues_count":2,"forks_count":12,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-06-20T00:38:05.708Z","etag":null,"topics":["cmake","cpp","slint","template"],"latest_commit_sha":null,"homepage":"https://slint.dev","language":"CMake","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slint-ui.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-09-23T09:59:38.000Z","updated_at":"2025-05-26T14:13:41.000Z","dependencies_parsed_at":"2023-02-06T05:01:37.395Z","dependency_job_id":"e966d5dc-0433-4e8f-b744-0c948b25f964","html_url":"https://github.com/slint-ui/slint-cpp-template","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/slint-ui/slint-cpp-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slint-ui%2Fslint-cpp-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slint-ui%2Fslint-cpp-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slint-ui%2Fslint-cpp-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slint-ui%2Fslint-cpp-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slint-ui","download_url":"https://codeload.github.com/slint-ui/slint-cpp-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slint-ui%2Fslint-cpp-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265133068,"owners_count":23716289,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cmake","cpp","slint","template"],"created_at":"2025-05-27T00:18:37.447Z","updated_at":"2025-07-13T11:34:32.950Z","avatar_url":"https://github.com/slint-ui.png","language":"CMake","readme":"# Slint C++ Template\n\nA template for a C++ application that's using [Slint](https://slint.dev) for the user interface and CMake for the build system.\n\n## About\n\nThis template helps you get started developing a C++ application with Slint as toolkit\nfor the user interface. It demonstrates the integration between the `.slint` UI markup and\nC++ code, how to trigger react to callbacks, get and set properties and use basic widgets.\n\n## Prerequisites\n\nIn order to use this template and build a C++ application, you need to install a few tools:\n\n  * **[cmake](https://cmake.org/download/)** (3.21 or newer)\n  * A C++ compiler that supports C++ 20 \n\nIf your target environment is Linux or Windows on an x86-64 architecture, then you may also opt into downloading one of our binary Slint packages. These are pre-compiled and require no further tools. You can find setup instructions and download links at\n\n\u003chttps://slint.dev/docs/cpp/cmake.html#install-binary-packages\u003e\n\nAlternatively, this template will automatically download the Slint sources and compile them. This option requires you to install Rust by following the [Rust Getting Started Guide](https://www.rust-lang.org/learn/get-started). Once this is done, you should have the ```rustc``` compiler and the ```cargo``` build system installed in your path.\n\n## Usage\n\n1. Download and extract the [ZIP archive of this repository](https://github.com/slint-ui/slint-cpp-template/archive/refs/heads/main.zip).\n2. Rename the extracted directory and change into it:\n    ```\n    mv slint-cpp-template-main my-project\n    cd my-project\n    ```\n3. Configure with CMake\n   ```\n   mkdir build\n   cmake -B build\n   ```\n4. Build with CMake\n   ```\n   cmake --build build\n   ```\n5. Run the application binary\n    * Linux/macOS:\n        ```\n        ./build/my_application\n        ```\n    * Windows:\n        ```\n        build\\my_application.exe\n        ```\n\nWe recommend using an IDE for development, along with our [LSP-based IDE integration for `.slint` files](https://github.com/slint-ui/slint/blob/master/tools/lsp/README.md). You can also load this project directly in [Visual Studio Code](https://code.visualstudio.com) and install our [Slint extension](https://marketplace.visualstudio.com/items?itemName=Slint.slint).\n\n## Next Steps\n\nWe hope that this template helps you get started and you enjoy exploring making user interfaces with Slint. To learn more\nabout the Slint APIs and the `.slint` markup language check out our [online documentation](https://slint.dev/docs/cpp/).\n\nDon't forget to edit this README to replace it by yours\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslint-ui%2Fslint-cpp-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslint-ui%2Fslint-cpp-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslint-ui%2Fslint-cpp-template/lists"}