timer with graph in qml
Unsolved
Installation and Deployment
-
timer with graph in qml .
timer was not match with stop watch after 3000 x axis
and interval is 10milisecond.please help me how resolve??
import QtQuick 2.15
import QtQuick.Window 2.15
import QtCharts 2.3
Window {
width: 1000
height: 480
visible: true
title: qsTr("Hello World")
property int xx: 0
property int yy: 0
property int zz: 0
property real aa: 00
property real bb: 20
//property int point11: 0Rectangle { width: 1000 height: 300 ChartView { id: chart anchors.fill: parent // Define the chart axes ValueAxis { id: valueAxis min: 0 max: 10 titleText: "ValueY" } ValueAxis { id: valueAxisX min: 0 max: 1000 tickCount: 11 titleText: "ValueX" } LineSeries { id: series axisX: valueAxisX axisY: valueAxis name: "Series" } Timer { id: timer interval: 10 running: true repeat: true property int amountOfData: 0 onTriggered: { aa++ bb = Math.random() * 10; console.log(aa)
// series.append(aa,bb)
if(amountOfData>valueAxisX.max)
{
valueAxisX.max++
valueAxisX.min++
}
else
{
amountOfData++
}} } } }
}