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. QChart very slow
Forum Updated to NodeBB v4.3 + New Features

QChart very slow

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 678 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.
  • S Offline
    S Offline
    Stefano84
    wrote on last edited by
    #1

    Hi everyone.
    I am a beginner in Qt.
    I have a problem with charts.
    I took the example as a reference: Zoom Line Example (https://doc.qt.io/qt-5/qtcharts-zoomlinechart-example.html).

    I noticed, however, that when I use a series with a number of points greater than 10000, the graph slows down a lot by blocking the GUI too.

    Is there a way to run the chart in another thread?
    Can anyone write me a code example?
    Thank you all for your availability.

    Greetings.

    Pl45m4P 1 Reply Last reply
    0
    • S Stefano84

      Hi everyone.
      I am a beginner in Qt.
      I have a problem with charts.
      I took the example as a reference: Zoom Line Example (https://doc.qt.io/qt-5/qtcharts-zoomlinechart-example.html).

      I noticed, however, that when I use a series with a number of points greater than 10000, the graph slows down a lot by blocking the GUI too.

      Is there a way to run the chart in another thread?
      Can anyone write me a code example?
      Thank you all for your availability.

      Greetings.

      Pl45m4P Offline
      Pl45m4P Offline
      Pl45m4
      wrote on last edited by
      #2

      @Stefano84

      Don't show all points at all time. If you zoom-out, reduce the number of visible points by e.g. showing every second point only.


      If debugging is the process of removing software bugs, then programming must be the process of putting them in.

      ~E. W. Dijkstra

      1 Reply Last reply
      3
      • S Offline
        S Offline
        Stefano84
        wrote on last edited by
        #3

        @Pl45m4 said in QChart very slow:

        Don't show all points at all time. If you zoom-out, reduce the number of visible points by e.g. showing every second point only.

        Hi, what do you mean?
        Can you give me an example?
        Thanks so much

        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