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. Performance graph example

Performance graph example

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 4 Posters 980 Views 2 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.
  • Cobra91151C Offline
    Cobra91151C Offline
    Cobra91151
    wrote on last edited by Cobra91151
    #1

    Hello!
    I want to build a performance widget using Qt to display the download progress, cpu/ram usage etc. I want something like in the screenshot below:

    enter image description here

    Should I use the QGraphicsScene or QSplineSeries with QChart to achieve it? I have/extract the actual data, but want to display it in the graphs. Thanks.

    1 Reply Last reply
    0
    • B Offline
      B Offline
      beibei
      wrote on last edited by
      #2

      It is easier to implement with QChart and QChartView.

      Cobra91151C 1 Reply Last reply
      0
      • B beibei

        It is easier to implement with QChart and QChartView.

        Cobra91151C Offline
        Cobra91151C Offline
        Cobra91151
        wrote on last edited by
        #3

        @beibei

        Good. I will try it. Thanks.

        JonBJ 1 Reply Last reply
        0
        • Cobra91151C Cobra91151

          @beibei

          Good. I will try it. Thanks.

          JonBJ Online
          JonBJ Online
          JonB
          wrote on last edited by
          #4

          @Cobra91151
          Are you already using Qt Charts in your application? If not, just checking you are OK about licensing implication.

          Cobra91151C 1 Reply Last reply
          0
          • JonBJ JonB

            @Cobra91151
            Are you already using Qt Charts in your application? If not, just checking you are OK about licensing implication.

            Cobra91151C Offline
            Cobra91151C Offline
            Cobra91151
            wrote on last edited by
            #5

            @JonB

            I am working on the website now. Will check it later. What do you mean regarding Qt Charts?

            JonBJ 1 Reply Last reply
            0
            • Cobra91151C Cobra91151

              @JonB

              I am working on the website now. Will check it later. What do you mean regarding Qt Charts?

              JonBJ Online
              JonBJ Online
              JonB
              wrote on last edited by JonB
              #6

              @Cobra91151
              I am just checking that you aware if you choose to start using Qt Charts for this then your own code has to become GPL, and therefore you must release the source code if you distribute the binary. Which you may or may not care about (e.g. if your code is only for your own use). Or buy a Qt commercial licence. Just a heads-up if it influences your decision.

              Cobra91151C 1 Reply Last reply
              1
              • JonBJ JonB

                @Cobra91151
                I am just checking that you aware if you choose to start using Qt Charts for this then your own code has to become GPL, and therefore you must release the source code if you distribute the binary. Which you may or may not care about (e.g. if your code is only for your own use). Or buy a Qt commercial licence. Just a heads-up if it influences your decision.

                Cobra91151C Offline
                Cobra91151C Offline
                Cobra91151
                wrote on last edited by Cobra91151
                #7

                @JonB

                Ok. This applies for all Qt versions regarding the Qt Charts or only the latest? For example, when using Qt 5.9.9?

                JonBJ 1 Reply Last reply
                0
                • Cobra91151C Cobra91151

                  @JonB

                  Ok. This applies for all Qt versions regarding the Qt Charts or only the latest? For example, when using Qt 5.9.9?

                  JonBJ Online
                  JonBJ Online
                  JonB
                  wrote on last edited by
                  #8

                  @Cobra91151
                  All. Qt Charts has always been (so far as I know) GPL/Commercial, never LGPL.

                  I don't blame you for wishing to use Qt Charts. I would too on one project I'm working on. But that's not an option if you want to keep source closed but can't afford/don't want to pay for the commercial licence. As I said, just a heads-up before you commit to your way forward.

                  Cobra91151C 1 Reply Last reply
                  0
                  • JonBJ JonB

                    @Cobra91151
                    All. Qt Charts has always been (so far as I know) GPL/Commercial, never LGPL.

                    I don't blame you for wishing to use Qt Charts. I would too on one project I'm working on. But that's not an option if you want to keep source closed but can't afford/don't want to pay for the commercial licence. As I said, just a heads-up before you commit to your way forward.

                    Cobra91151C Offline
                    Cobra91151C Offline
                    Cobra91151
                    wrote on last edited by
                    #9

                    @JonB

                    Good, I understand. I have not decided what to choose yet. I do not think that Qt Charts would be useful in my case. I would prefer something like this: https://www.youtube.com/watch?v=eSHTXQbPquk

                    I think it was done using QPainter. It should work well for Linux, but need to reimplement it for Windows. Thanks.

                    mrjjM 1 Reply Last reply
                    0
                    • Cobra91151C Cobra91151

                      @JonB

                      Good, I understand. I have not decided what to choose yet. I do not think that Qt Charts would be useful in my case. I would prefer something like this: https://www.youtube.com/watch?v=eSHTXQbPquk

                      I think it was done using QPainter. It should work well for Linux, but need to reimplement it for Windows. Thanks.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @Cobra91151
                      Hi
                      Since you dont need zoom and panning etc, using QPainter should work
                      super.

                      1 Reply Last reply
                      1

                      • Login

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