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

    JoeCFDJ 1 Reply Last reply
    0
    • P Praveen.Illa

      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 ?

      JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on 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
      0
      • JoeCFDJ JoeCFD

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

        JoeCFDJ 1 Reply Last reply
        0
        • P 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 ?

          Scale.png

          JoeCFDJ Offline
          JoeCFDJ Offline
          JoeCFD
          wrote on 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
          0
          • JoeCFDJ JoeCFD

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

            P Offline
            P Offline
            Praveen.Illa
            wrote on 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 last edited by
              #6
              This post is deleted!
              1 Reply Last reply
              0

              • Login

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