Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Animating a Circular Gauge using UDP Ethernet and Displaying Gauge Values Digitally
LoonyToons last edited by LoonyToons
I have recently created a Qt Quick Application on my laptop, in which I have created a circular gauge that animates itself using the "NumberAnimation" function.
I would like to set it up so that it accepts UDP Ethernet data from an external device and moves the circular gauge accordingly.
I would also like to create a small digital display within the gauge to display the value which the gauge needle is pointing to.
Thanks in advance!
Hi and welcome to devnet,
From what you wrote, you likely want to implement a C++ class that handle the network data parsing and then emits one of more signals with whatever values you extract from it.
You can then connect that within your UI.
LoonyToons last edited by
Are there any examples of this? Also, how would I create a digital read-out of the gauge? Thank you
tobias_m last edited by
Then to integrate and pass the data from C++ you can check this: https://doc.qt.io/qt-5/qtqml-cppintegration-topic.html
Maybe it’s enough to parse the data and expose a property which your gauge can use?