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. Fixed length auto update real time chart ploting In QML.

Fixed length auto update real time chart ploting In QML.

Scheduled Pinned Locked Moved Unsolved General and Desktop
qmlqml c++chartsreal time plot
1 Posts 1 Posters 349 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.
  • V Offline
    V Offline
    vicky_mac
    wrote on 21 Mar 2022, 14:14 last edited by
    #1

    Hi,

    I want to show sensor's live data coming after every second on a QML chart.

    I want to maintain a fixed length 50 points history on graph. So first 50 points will be displayed as it is and then after that I want to remove first point and add the new data to last index.

    Possible ways I explored :

    1. Manual remove , shift the elements and then add last value at last index.

    2.Remove first , add last and move x axis.

    These both are working but 1st solution requires too much of work to get it done .

    And in second scenario the xaxis is a real value so after a point I think it will create problem because my application may run for weeks . I don't know xaxis shifting will be ok or not.

    Is there any way we can achieve it efficiently. I know many medical devices developed using QML. Heart rate monitors and other other applications have similar use cases of data plotting.

    Thank you.

    1 Reply Last reply
    0

    1/1

    21 Mar 2022, 14:14

    • Login

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