Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Fixed length auto update real time chart ploting In QML.

    General and Desktop
    qml qml c++ charts real time plot
    1
    1
    96
    Loading More Posts
    • 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
      vicky_mac last edited by

      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 Reply Quote 0
      • First post
        Last post