Welcome to our examples folder, here you will find various full examples that demonstrate different features and are used as part of the unit tests.
A minimal example can be found in the qml_minimal
folder which shows how to expose basic properties and invokables.
This example is built with CMake.
A minimal example building the same code with Cargo is in the cargo_without_cmake
folder.
Then we have multiple other examples available inside the projects
- Defining properties and invokables
- Defining & Emitting Signals
- Using threaded logic
- How to (de)serialise QObjects
- Using Qt types such as QVariant
- Defining multiple QObjects in a single bridge
- Nested objects
For documentation on how to use these features please visit our Book https://kdab.github.io/cxx-qt/book/.