Over time, dynamic curve,
/* Time */
void Dialog::timerUpDate()
{
t += 10;
Point.setX(t); /* Time plus two seconds */
Point.setY(qrand() % 100); /* Setting the ordinate value */
path->lineTo(Point); /* */
If (t>width ())/* when the time value t is greater than the width of the window you want to adjust the coordinate origin */
p -= 10; /* Adjust the coordinate origin */
update();
}