Qt QGraphicsScene::drawItems substitute ?
tonnot last edited by
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
giesbert last edited by
If you look at the docs:
Since Qt 4.6, this function is not called anymore unless the QGraphicsView::IndirectPainting flag is given as an Optimization flag.
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