Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Need to Draw 100 points in a second in area series

Need to Draw 100 points in a second in area series

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 206 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.
  • M Offline
    M Offline
    Monalisa
    wrote on last edited by Monalisa
    #1

    Hello All,

    I am trying to Draw 100 points in a second in AreaSeries in qml , following is the code snippet for the same.
    In cpp

    1. i have 5 msecs interval timer which generates random points and set the property of qml.
      mainqmlObjectptr->setProperty("points", QPointF(x,y));

    2. I have areseries component in QML
      AreaSeries{
      id: areSeries1
      color:"red"
      useOpenGL: true
      borderColor: "green"
      upperSeries: LineSeries{
      id: lineSeries1
      }
      }

    3)On propertyChange i am drawing the points of area line series
    onPropertChanged:
    {
    lineSeries1.append(x,y)
    }

    I am able to draw at max 22 points in a second, however i need to draw 100 points.
    If i use line series i am able to achieve to draw 100 points however in area series i am not getting this performance,is there any way to speedup the areaseries rendering.

    I just gathered information from link "https://doc.qt.io/qt-5/qml-qtcharts-abstractseries.html " that useOpenGl is not supported for AreaSeries , is there any way to enable it for area series?

    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