slint/examples/iot-dashboard
Olivier Goffart 1425ef63de Change the Url from sixtyfps.io to slint-ui.com
Also, change the URL of the logo in the docs
2022-02-08 08:52:46 +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 Rename sixtyfps_ 2022-02-02 14:25:56 +01:00
dashboard.cpp Update some .60 to .slint 2022-02-02 17:29:40 +01:00
dashboard.h Rename the C++ header files 2022-02-02 13:07:26 +01:00
iot-dashboard.slint Rename all our .60 files to .slint 2022-02-02 10:05:45 +01:00
main.cpp Rename the C++ header files 2022-02-02 13:07:26 +01:00
main.slint Replace references to the .60 files that are now renamed with .slint 2022-02-02 10:12:31 +01: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.