Qt QGraphicsScene::drawItems substitute ?
-
For QGraphicsScene::drawItems the reference says : Reimplement this function to provide custom painting of all items for the scene; gaining complete control over how each item is drawn. But this function is marked as obsolete . Is there any new equivalent method ? Thanks
-
If you look at the docs:
[quote]
Since Qt 4.6, this function is not called anymore unless the QGraphicsView::IndirectPainting flag is given as an Optimization flag.
[/quote]As no other option is stated, I assume, you have to use drawForeground for that.
As I looked at the code, I found, that is is still called in QGraphicsScene::render with Qt 4.7.4