What are the advantages or disadvantages using QGraphicsScene over QPainter's draw...() (I mean overriding widget's paintEvent) ?
Which technique is preferred ?
What are the advantages or disadvantages using QGraphicsScene over QPainter's draw...() (I mean overriding widget's paintEvent) ?
Which technique is preferred ?
Last edited by zotu; 19th October 2010 at 04:01.
i have many small elements drawn on the widget. i'd like to have the ability to grab those elements with the mouse and move them around on the surface.
at the very first look it seems that QGraphicsScene fits for that purpose.
So I'd like to know the performance cost of using QGraphicsScene technique comparing to doing all logic myself via paintEvent and mouseEvents.
I'd go with QGScene too. QPainter is more suited to painting.
Bookmarks