-
QGraphicsItem setPos
Hey guys,
I'm coding a light QGraphicsScene based file browser.
I have 10 000 QGraphicsItem inside my QGraphicsScene.
I'm doing a setPos on the 10 000 items at once.
This is quite slow.
What's the fastest way to apply a setPos to 10 000 items ?
Can I disable the scene's update to perform it faster or something ?
Thanks.
-
Re: QGraphicsItem setPos
Do all setPos before put scene into view....
-
Re: QGraphicsItem setPos
You can use QGraphicsView::NoViewportUpdate on your view before setting the positions and then change back.
-
Re: QGraphicsItem setPos
What is the difference with QWidget::setUpdatesEnabled ?