Upload Code
loading-left
loading loading loading
loading-right

Loading

Profile
No self-introduction
codes (1)
QT to draw curves
4.5
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(); }
zhaoliwan
2016-08-23
0
1
No more~