PDA

View Full Version : Which is faster, drawRect(..) Or drawPath(..) ?



nileshsince1980
18th November 2008, 09:20
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 ?

wysota
18th November 2008, 09:26
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.