[Qt-interest] updating QGraphicsScene
Ben Swerts
benswerts at telenet.be
Mon Aug 31 22:37:03 CEST 2009
Hi Deepak,
Some things you can check:
- Is your overwritten QGraphicsScene::drawBackground called at all?
- If you modify your background, do you call QGraphicsView::invalidateScene(
scene_->sceneRect(), QGraphicsScene::BackgroundLayer )?
Greets,
Ben
> I need to draw a grid on the background of a QGraphicsScene. I can draw
> the grid by overwriting the drawBackground(...) method. But the scene does
> not update when I scroll up and down. Should I use the drawBackground()
> method in QGraphicsView instead? Or is there any other way to perform the
> update?
>
More information about the Qt-interest-old
mailing list