Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. [Solved] Qwt Dial and needle

[Solved] Qwt Dial and needle

Scheduled Pinned Locked Moved 3rd Party Software
7 Posts 2 Posters 6.3k 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.
  • T Offline
    T Offline
    toho71
    wrote on last edited by
    #1

    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
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      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
      0
      • T Offline
        T Offline
        toho71
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • EddyE Offline
          EddyE Offline
          Eddy
          wrote on last edited by
          #4

          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
          0
          • T Offline
            T Offline
            toho71
            wrote on last edited by
            #5

            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
            0
            • EddyE Offline
              EddyE Offline
              Eddy
              wrote on last edited by
              #6

              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
              0
              • T Offline
                T Offline
                toho71
                wrote on last edited by
                #7

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

                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