Unsolved Is there a way to create a round meter with data received via serial communication ?
-
i make a project that serial-communicating qt with arm board using qt creator.
if i adjusting the gauge of the device , i can see change the value of project in ui.
but i want change of value in round- meter .
I looked for something like this.
https://doc.qt.io/qt-5/qml-qtquick-extras-circulargauge.html
But this requires qml or qmake.
Is there any way to create it using qt creator without installing it separately -
@segtteee said in Is there a way to create a round meter with data received via serial communication ?:
Is there any way to create a qt creator without installing it separately?
What does this mean?
-
@jsulm
Is there any way to create it using qt creator without installing it separately -
@segtteee Create what? Installing what?
-
Well, you can recreate "CircularGauge QML Type" yourself, sure.
If you want to use the actual "CircularGauge QML Type" it says right there:
import QtQuick.Extras 1.4
This uses QtQuick.Extras.
Controls v2 https://doc.qt.io/qt-5/qtquickcontrols2-differences.html does not seem to have an counterpart or alternative. -
@jsulm
I want to make what is on the link above.. -
Perhaps QWidget based gauge is what he wants.
-
@segtteee Did you check QDial? http://doc.qt.io/qt-5.9/qdial.html
-
@jsulm
How can I see this in ui? Just add it to the code? -
@segtteee Depends on how you create your UI: either via code or in the Qt Designer. How are you doing your UI?
-
@jsulm
I made project in qt creator, using design tab . I made it with the items there.
not using qt designer. -
@segtteee What do you mean by "design tab"? The Qt Designer is integrated in QtCreator - so I guess you're using it. Then see under "Input Widgets".
-
@jsulm
I made this on my ui. But what if i want to change the value? (From the device) like if device value change → dial value change -
@segtteee Well, now you need to start to read documentation: http://doc.qt.io/qt-5.9/qdial-members.html
This one is what you need: http://doc.qt.io/qt-5.9/qabstractslider.html#value-prop -
And, for non widgets...
https://doc.qt.io/qt-5/qml-qtquick-controls2-dial.html
Or for older style QtQuick.Extras
https://doc.qt.io/qt-5/qml-qtquick-extras-dial.html -
@6thC He is explicitly asking for non QML/QtQuick solution...