import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 ApplicationWindow { width: 1600 height: 400 visible : true property int sampleCount : 1000 property var sampleArray : [] property int nextSampleIndex property int fps Canvas { id: graph anchors.fill: parent anchors.margins: 10 renderTarget : Canvas.FramebufferObject //Canvas.Image renderStrategy : Canvas.Cooperative function newSample(i) { return Math.random() //* 0.05 is better (repaint area is small) } Component.onCompleted: { for (var i=0; i