I have two QGraphicsView and one QGraphicsScene. One of views don't need to draw qraphicsitems. Is there any way to disable drawing of items on the view?
2 Answers
0
votes
From the Qt5.2 documentation:
updatesEnabled : bool
This property holds whether updates are enabled.
An updates enabled widget receives paint events and has a system background; a disabled widget does not. This also implies that calling update() and repaint() has no effect if updates are disabled.
You'll probably have to show some code. There are quite a few ways to do this but it's really based on your implementation.