Yes, these look ok and you already said they work.
As I said in my last comment, you need to notify the QML side about new data.
So add a signal and emit it when new data arrives.
Then you react to that signal in QML, e.g. by connecting a function to it or by using a Connections element.
In both cases I would recommend to move the code that clears and fills the plot into a function.
Then it can be called from onCompleted and the signal handler.
No, this has nothing to do with what you need here.
Cheers,
_
Bookmarks