View Full Version : QPainter paints only what is seen in QGraphicsView
tsd-charlie
7th January 2010, 14:11
I have a very large QGraphicsScene which needs to be painted on only when it is viewed by the QGraphicsView. Currently it is loading the entire scene and taking a very long time to do so. Is there a way of having QPainter only paint the QGraphicsScene if it is currently in the QGraphicsView?
axeljaeger
8th January 2010, 11:59
QGraphicsView should be clever enough to do that out of the box. Are you sure that it is drawn or do you just think so? You can use a profiler to see where your application actually waste time.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.