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. Qt 6 Chart More than 1, are slowing down
Forum Updated to NodeBB v4.3 + New Features

Qt 6 Chart More than 1, are slowing down

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 204 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.
  • iamardatasyurekI Offline
    iamardatasyurekI Offline
    iamardatasyurek
    wrote on last edited by
    #1

    My question : I need to use more than one QChart. When I use one, I can plot the incoming data fluently, but when I increase the number of QCharts (maximum 4) I experience a slowdown almost twice.

    About QLineSeries : As for my QLineSeries, they can be opened and closed with a maximum of 3 on a QChart and all of them have setOpenGL(true) enabled.

    About the structure I set up : My QCharts set the aspect ratio by creating a QOpenGLWidget as a Container inside a QWidget and giving it height and width according to the number of QCharts. So what I mean is that when I add a new QChart, I create a new QOpenGLWidget and a new object, for example MyChart, and I assign this newly created QOpenGLWidget to MyChart as a parent of QChartView. When I delete it, I make sure that it is deleted.

    Figure 1
    Screenshot from 2023-12-15 09-39-08.png

    There is only one QChart as shown in Figure 1.

    Figure 2
    Screenshot from 2023-12-15 09-47-30.png

    There are four QCharts as shown in Figure 2.

    Explanation of time difference : In Figure 1 a step is completed in 80ms on average, while in Figure 2 it takes 150ms. Also this time increases when I activate other QLineSeries.

    About the Mouse Events Stuttering : When I use four QCharts, my mouse events are getting stiff. But I don't have the same problem when I use one QChart. For example; move and wheel.

    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