mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-30 15:17:25 +00:00

* Keep project related .md files triple licensed as the rest of the crate * Make vtable MIT OR Apache 2.0 (as suggested by @ogoffart)
26 lines
1 KiB
Markdown
26 lines
1 KiB
Markdown
<!-- Copyright © SixtyFPS GmbH <info@slint.dev> ; SPDX-License-Identifier: MIT -->
|
|
|
|
# iot-dashboard
|
|
|
|
This example is a clone of https://github.com/uwerat/qskinny/tree/master/examples/iotdashboard from
|
|
the [QSkinny framework](https://qskinny.github.io/)
|
|
|
|
The images are originating from that repository
|
|
|
|
The `main.slint` and `iot-dashboard.slint` files are basically a pure translation from
|
|
the C++ QSkinny code to self-contained .slint.
|
|
|
|
## Online preview:
|
|
|
|
https://slint.dev/snapshots/master/editor/preview.html?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/iot-dashboard/main.slint
|
|
|
|
## Screenshot
|
|
|
|

|
|
|
|
## Loading dynamic widgets from C++
|
|
|
|
The example was also extended with C++ code (the `.cpp`) to show how to use the C++
|
|
interpreter to dynamically generate .slint code on the fly and to show different
|
|
widgets and their backend, forwarding all the properties from widgets to the
|
|
root so they can be changed by the backend.
|