I wrote a c++ QQuickItem
component for drawing curve, but for updating the curve, i have to call update method by a timer.
example of what i am doing:
Item {
Curve {
id: curve
height: 100
width: 600
}
Timer {
id: timer
interval:20
repeat: true
running: true
onTriggered: {
curve.update()
}
}
}
Is there any way to call it from C++?