Hi Friends.
I am drawing 10, 000 + rectangles using GraphicsView/Scene architecture.
Can anybody tell me which function of QPainter will draw the rects faster.
Should I use drawRect Or drawPath ? Which will give faster rendering result ?
Hi Friends.
I am drawing 10, 000 + rectangles using GraphicsView/Scene architecture.
Can anybody tell me which function of QPainter will draw the rects faster.
Should I use drawRect Or drawPath ? Which will give faster rendering result ?
drawRect() is not-slower-than drawPath(). In some cases they may lead to the same call, but in most cases drawing a rectangle is faster.
Bookmarks