Regarding Gauge control in Qt6
-
wrote on 20 Mar 2023, 04:39 last edited by
Hi Team,
In my project, I am using QML Gauge component and our project is implemented on Qt5.15.x.
Now, we are porting our project to Qt6.x and found Gauge component is not available in Qt6.
So, I thought of taking the source of Gauge.qml component (from Qt sources: \5.15.13\Src\qtquickcontrols\src\extras) and integrate it with my application but ended up with error like "RangeModel is not a type".Gauge.qml is using RangeModel component, but I did not found the source of RangeModel.qml
I am NOT very much experienced in Qt-Qml and am not very sure doing this way is Right or Wrong. Can someone please suggest me on this ?
-
Hi Team,
In my project, I am using QML Gauge component and our project is implemented on Qt5.15.x.
Now, we are porting our project to Qt6.x and found Gauge component is not available in Qt6.
So, I thought of taking the source of Gauge.qml component (from Qt sources: \5.15.13\Src\qtquickcontrols\src\extras) and integrate it with my application but ended up with error like "RangeModel is not a type".Gauge.qml is using RangeModel component, but I did not found the source of RangeModel.qml
I am NOT very much experienced in Qt-Qml and am not very sure doing this way is Right or Wrong. Can someone please suggest me on this ?
wrote on 20 Mar 2023, 22:33 last edited by -
wrote on 24 Mar 2023, 04:37 last edited by Praveen.Illa
@JoeCFD - Thank you. I could able to find the RangeModel source in Qt 5.15.x source.
I have started doing a separate POC for a Gauge component from Qt sources. But, I feel it is difficult to implement it, as we have to resolve multiple dependencies and include multiple headers (I dont have idea about Qt headers and its implementations).
Do you feel any other better solution.
Finally, I need to implement a control as shown in below attachment
In Qt5.15.x, I have used combination of slider and Gauge components for displaying below control But, Qt 6.x does not support gauge component.So, can you please suggest how can I implement below component in Qt 6.x ?
-
@JoeCFD - Thank you. I could able to find the RangeModel source in Qt 5.15.x source.
I have started doing a separate POC for a Gauge component from Qt sources. But, I feel it is difficult to implement it, as we have to resolve multiple dependencies and include multiple headers (I dont have idea about Qt headers and its implementations).
Do you feel any other better solution.
Finally, I need to implement a control as shown in below attachment
In Qt5.15.x, I have used combination of slider and Gauge components for displaying below control But, Qt 6.x does not support gauge component.So, can you please suggest how can I implement below component in Qt 6.x ?
wrote on 24 Mar 2023, 16:00 last edited by -
wrote on 25 Mar 2023, 16:56 last edited by
@JoeCFD - Thank you for sharing the bug item.
Any ideas how to implement this control is much appreciated.
Thank you -
wrote on 27 Mar 2023, 01:46 last edited byThis post is deleted!
4/6