mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 22:01:13 +00:00
![]() Provide a minimum height for the boxes, so that the graphs are always visible. The graphs are painted on top of the boxes, but the boxes define the geometry. |
||
---|---|---|
.. | ||
images | ||
.gitignore | ||
CMakeLists.txt | ||
dashboard.cpp | ||
dashboard.h | ||
iot-dashboard.slint | ||
main.cpp | ||
main.slint | ||
README.md |
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:
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.