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. Draw a graphic in qt designer
Qt 6.11 is out! See what's new in the release blog

Draw a graphic in qt designer

Scheduled Pinned Locked Moved General and Desktop
7 Posts 4 Posters 4.0k 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.
  • J Offline
    J Offline
    jekasores
    wrote on last edited by
    #1

    Hi, I should draw a graphic in qt designer about a real time process. This graphic represent PID Control. What tools or widgets I should use? Thanks

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      qxoz
      wrote on last edited by
      #2

      Hi jekasores!
      Can you explain what you mean by "...draw a graphic in qt designer..."?

      1 Reply Last reply
      0
      • JeroentjehomeJ Offline
        JeroentjehomeJ Offline
        Jeroentjehome
        wrote on last edited by
        #3

        Since a PID contains three parameters I would recommend three sliders/dials or spinbox. But as qxoz said, it's a bit unclear what you want to achieve. Do you want a real-time graph? Or a way to setup the PID settings real-time? Or both?
        Drawing a graph there are some third party tools to use.
        For the dials or other widgets you should use the signals changed() to send new settings into your system.
        Greetz

        Greetz, Jeroen

        1 Reply Last reply
        0
        • J Offline
          J Offline
          jekasores
          wrote on last edited by
          #4

          Sorry guys,
          I would like to say that I want to draw a graphic in Cartesian coordinate axis. The graphic will show velocity in my process so every time I need to draw a new point in the graphic. Which tools is better to use? What commands I should search for?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mario84
            wrote on last edited by
            #5

            The class you should search for is QPainter (and everything related to it)...
            Have a look at the "Basic drawing example":http://qt-project.org/doc/qt-4.8/painting-basicdrawing.html this will show you how to use QPainter

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              qxoz
              wrote on last edited by
              #6

              Also you can get good performance with "Graphicsview":https://qt-project.org/doc/qt-5.0/qtwidgets/examples-graphicsview.html

              1 Reply Last reply
              0
              • J Offline
                J Offline
                jekasores
                wrote on last edited by
                #7

                Thanks guys! I'll try it. Thanks!

                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