slint/examples/iot-dashboard
2023-02-13 17:53:23 +01:00
..
images Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
.gitignore Added boilerplate for C++ iot dashboard 2021-05-17 11:12:08 +02:00
CMakeLists.txt Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
dashboard.cpp Exaples: Use the new syntax for the iot-dashboard and imagefilter 2023-02-13 17:53:23 +01:00
dashboard.h Exaples: Use the new syntax for the iot-dashboard and imagefilter 2023-02-13 17:53:23 +01:00
iot-dashboard.slint Exaples: Use the new syntax for the iot-dashboard and imagefilter 2023-02-13 17:53:23 +01:00
main.cpp Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
main.slint Update examples to new syntax (#2067) 2023-01-16 12:11:25 +00:00
README.md Change the Url from sixtyfps.io to slint-ui.com 2022-02-08 08:52:46 +01:00

iot-dashboard

This example is a clone of https://github.com/uwerat/qskinny/tree/master/examples/iotdashboard from the QSkinny framework

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-ui.com/snapshots/master/editor/preview.html?load_url=https://raw.githubusercontent.com/slint-ui/slint/master/examples/iot-dashboard/main.slint

Screenshot

Screenshot of the IOT Dashboard

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.