Hello to all,

I am trying to visualize a cartesian 2D-plane with x/y axis in CAD app using a subclass of QGraphicsView.
The QGV will be read-only, i.e. the user interaction will be minimal, mostly zooming and panning.

My question is about choosing the right properties to leverage the performace and memory consumption of the QGV.
The scene's rect is 25000x25000 and the intention is to display relatively few (<10, usually just one) pre-cached polygons containing about 100,000 points on average.

I've already read some related posts (for instance, http://www.qtcentre.org/forum/f-qt-p...low-22392.html) and I'm trying to decide whether the CacheBackground flag is a an efficient choice - since user interaction is minimal and the view contents are cached.

My initial thought was to override one of drawbackground() or drawItems() with DontSavePainterState, FullViewportUpdate flag set.
Is this a good approach?

Thanks in advance,
v_kokk