Ported from examples/quickcontrols/extras/gallery by bigbass reduced to one widget
https://code.qt.io/cgit/qt/qtquickcontrols.git/tree/examples/quickcontrols/extras/gallery?h=5.1
RPI 3/4 and x86_64 BaCon port
https://sourceforge.net/projects/bacon-qt5/files/RaspberryPI/qt-speedometer-demo.tar.gz/download
There are several files but just one binary to launch qml
found a way to reduce the code to one simple binary
and reduce dependencies also
Some details :
Note qmake in pure c++ needs to do things
in a more complex way to link all the files Why?
mostly because of the qtcreator UI
generating the source code and linking the files
automatically to make it easy for user this comes with some
overhead if you need to port code to another
build system
This is not a complaint because I am doing something
outside of the original scope of the design by porting to BaCon
qmake is smart for Qt5 but Qt6 has moved to cmake for more complex
builds we can still port code to BaCon so all is well with cmake
no complaints either it is a needed tool for the c++ job
you don't have to use qmake or cmake
just
bacon speed.bac
will do the job after the code is ported keeping it easy and bacon friendly!