Conclusion
In this tutorial, we have demonstrated how to combine some built-in Slint elements with C++ code to build a little game. There are many more features that we have not talked about, such as layouts, widgets, or styling. Have a look at the examples in the Slint repo to see how these look like and can be used, such as the todo example.
A slightly more polished version of this memory puzzle game is available in the Slint repository. And you can play the wasm version in your browser.