slint/examples/iot-dashboard
Olivier Goffart 59e1361388 Fix compilation with C++20
Fixes #428
2021-08-20 18:49:15 +02: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 license date 2021-07-02 15:55:54 +02:00
dashboard.cpp Update license date 2021-07-02 15:55:54 +02:00
dashboard.h Update license date 2021-07-02 15:55:54 +02:00
iot-dashboard.60 Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
main.60 Apply pre-commit hooks to all files 2021-08-17 22:38:16 +02:00
main.cpp Fix compilation with C++20 2021-08-20 18:49:15 +02:00
README.md iot-dashboard: Add a screenshot in the README 2021-07-12 13:40:22 +02: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.60 and iot-dashboard.60 files are basically a pure translation from the C++ QSkinny code to self-contained .60.

Online preview:

https://sixtyfps.io/snapshots/master/editor/preview.html?load_url=https://raw.githubusercontent.com/sixtyfpsui/sixtyfps/master/examples/iot-dashboard/main.60

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 .60 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.