Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    [Solved] Qwt Dial and needle

    3rd Party Software
    2
    7
    5745
    Loading More Posts
    • 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.
    • T
      toho71 last edited by

      Is there anyone in this forum who has an exampel of qwt dial and move the needle to the bottom of the circle.-
      It's default value seems to be in the center.

      Sorry for my English,
      //Thomas

      I'm using AnalogWidgets insted in my prj

      1 Reply Last reply Reply Quote 0
      • E
        Eddy last edited by

        do you want something like "this example":http://doc.qt.nokia.com/4.7/declarative-ui-components-dialcontrol.html.

        I know it's not in Qwt...

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply Reply Quote 0
        • T
          toho71 last edited by

          That's a good start but the only thing I need is to set the needle lower in the instrument.

          1 Reply Last reply Reply Quote 0
          • E
            Eddy last edited by

            have a look at this line in Dial.qml:

            @angle: Math.min(Math.max(-130, root.value*2.6 - 130), 133)@

            there is the magic. change the 130 to 180 and the needle is downwards.

            Qt Certified Specialist
            www.edalsolutions.be

            1 Reply Last reply Reply Quote 0
            • T
              toho71 last edited by

              I will have a look of that. Thank you

              Thiis is out of the topic but
              If i want to use a free widget in my project and i put it in my qt creator/designer.
              The widgets shows and I can select them but should i put some path in the pro file just like with qwt or is it an easier way to do this.
              Because the build of the project dosen't like the new widget and creates some errors.

              Thomas

              1 Reply Last reply Reply Quote 0
              • E
                Eddy last edited by

                It would be better if you start a new topic on this and please give us more information when you do so.

                Qt Certified Specialist
                www.edalsolutions.be

                1 Reply Last reply Reply Quote 0
                • T
                  toho71 last edited by

                  Ok
                  I started a new topic about this problem.
                  http://developer.qt.nokia.com/forums/viewthread/10343/

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post