Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How can make a curve in Qt with values from MySQL
Forum Updated to NodeBB v4.3 + New Features

How can make a curve in Qt with values from MySQL

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 1.6k Views 1 Watching
  • 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.
  • N Offline
    N Offline
    nickvan86
    wrote on last edited by
    #1

    Hello Forum,

    i have a question about curve´s in Qt. In the docu i don´t find antything. Have anybody a idea that i can do this?
    I have a picture from a another software with curve´s.

    !http://imageshack.com/a/img849/6493/qilv.png(Curve)!

    Salute

    Alex from Germany

    Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

    1 Reply Last reply
    0
    • C Offline
      C Offline
      clochydd
      wrote on last edited by
      #2

      Hi, you can draw curves from your mysql data by using QPainter.
      Have a look at the QPainter Class and there are several examples that maybe useful for your task.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vezprog
        wrote on last edited by
        #3

        Qwt is also a great plotting library. I use it for both static and real-time plotting.

        http://qwt.sourceforge.net/

        1 Reply Last reply
        0
        • N Offline
          N Offline
          nickvan86
          wrote on last edited by
          #4

          [quote author="dvez43" date="1395231338"]Qwt is also a great plotting library. I use it for both static and real-time plotting.

          http://qwt.sourceforge.net/[/quote]

          Habe you a simple description for use this?

          Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vezprog
            wrote on last edited by
            #5

            "Download":http://qwt.sourceforge.net the project from the website and look at the examples directory. There should be plenty there for you to go off from.

            1. Construct the plot
            2. Add any legends or anything you want to add to the canvas
            3. Set your data points into the plot
            4. Set your plot to auto scale or set the scale to how you want it

            The docs are great for it.

            1 Reply Last reply
            0
            • N Offline
              N Offline
              nickvan86
              wrote on last edited by
              #6

              I have found a Video by YouTube. Is this the right way to install qwt?
              "Youtube":http://www.youtube.com/watch?v=ZqFKwF6q7jQ

              Qt 5.2.1 Creator 3.0.1 Windows 7 64bit

              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