Hi all,

I am using QGraphicsScene and QGraphicsView for rendering 2D graphics of vehicle traffic simulation. I want user to be able to control the simulation (i.e. start, stop and pause) so I assume QThread is required to prevent the GUI from freezing while the system does all the computation for the simulation.

I was wondering if it is a good idea to actually share the scene data between QGraphicsView and QThread subclasses. Will there be any complication in situation where QGraphicsView is redrawing while QThread tries to update the scene? Would it be safer to somehow render my scene to a QImage then draw the image instead? Hope someone can advice on this. Thanks.


Thuan Seah Tan