QPainter painter(this);for (int i = 0; i < 100; ++i) { painter.drawLine(.....);}
QPainter painter(this);QPainterPath pathfor (int i = 0; i < 100; ++i) { path.moveTo(...); path.lineTo(...);}painter.drawPath(path);
"path = 0, draw time = 0.194. Press a key to redraw" "path = -1, draw time = 0.377. Press a key to redraw" "path = 0, draw time = 0.194. Press a key to redraw" "path = -1, draw time = 0.388. Press a key to redraw" "path = 0, draw time = 0.192. Press a key to redraw" "path = -1, draw time = 0.385. Press a key to redraw"
"path = 0, draw time = 0.771. Press a key to redraw" "path = -1, draw time = 0.143. Press a key to redraw" "path = 0, draw time = 0.745. Press a key to redraw" "path = -1, draw time = 0.141. Press a key to redraw" "path = 0, draw time = 0.709. Press a key to redraw" "path = -1, draw time = 0.14. Press a key to redraw"
"path = 0, draw time = 0.236. Press a key to redraw""path = 1, draw time = 0.263. Press a key to redraw""path = 0, draw time = 0.26. Press a key to redraw""path = 1, draw time = 0.244. Press a key to redraw""path = 0, draw time = 0.25. Press a key to redraw""path = 1, draw time = 0.252. Press a key to redraw"
"path = 0, draw time = 0.562. Press a key to redraw""path = 1, draw time = 0.545. Press a key to redraw""path = 0, draw time = 0.556. Press a key to redraw""path = 1, draw time = 0.565. Press a key to redraw""path = 0, draw time = 0.549. Press a key to redraw""path = 1, draw time = 0.57. Press a key to redraw"
QPainter::drawText 3.9 - 4.5QStaticText 4.2 - 5QPainterPath ~1.9