Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Regarding Gauge control in Qt6
QtWS25 Last Chance

Regarding Gauge control in Qt6

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 822 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Praveen.Illa
    wrote on 20 Mar 2023, 04:39 last edited by
    #1

    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 ?

    J 1 Reply Last reply 20 Mar 2023, 22:33
    0
    • P Praveen.Illa
      20 Mar 2023, 04:39

      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 ?

      J Offline
      J Offline
      JoeCFD
      wrote on 20 Mar 2023, 22:33 last edited by
      #2

      @Praveen-Illa https://github.com/cedrus/qt/blob/master/qtquickcontrols/tests/auto/controls/data/rangemodel/rangemodel.qml

      P 1 Reply Last reply 24 Mar 2023, 04:37
      0
      • J JoeCFD
        20 Mar 2023, 22:33

        @Praveen-Illa https://github.com/cedrus/qt/blob/master/qtquickcontrols/tests/auto/controls/data/rangemodel/rangemodel.qml

        P Offline
        P Offline
        Praveen.Illa
        wrote on 24 Mar 2023, 04:37 last edited by Praveen.Illa
        #3

        @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 ?

        Scale.png

        J 1 Reply Last reply 24 Mar 2023, 16:00
        0
        • P Praveen.Illa
          24 Mar 2023, 04:37

          @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 ?

          Scale.png

          J Offline
          J Offline
          JoeCFD
          wrote on 24 Mar 2023, 16:00 last edited by
          #4

          @Praveen-Illa https://forum.qt.io/topic/141279/what-s-the-qt6-equivalent-to-gauge/4

          P 1 Reply Last reply 25 Mar 2023, 16:56
          0
          • J JoeCFD
            24 Mar 2023, 16:00

            @Praveen-Illa https://forum.qt.io/topic/141279/what-s-the-qt6-equivalent-to-gauge/4

            P Offline
            P Offline
            Praveen.Illa
            wrote on 25 Mar 2023, 16:56 last edited by
            #5

            @JoeCFD - Thank you for sharing the bug item.

            Any ideas how to implement this control is much appreciated.
            Thank you

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bakerinitially
              wrote on 27 Mar 2023, 01:46 last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0

              4/6

              24 Mar 2023, 16:00

              • Login

              • Login or register to search.
              4 out of 6
              • First post
                4/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved