I am writing my first qt program which heavily relies on QGraphicsScene/View. The first items added to the scene(s) while the program starts up show up as expected, while the items I add as it runs are not shown in the view. However, they show up if I rotate the view 360 degrees.
Is there a way I can force the view to update without having to do an expensive rotation. I think I have tried all the functions in scene/view that I think should force an update and non do.
linux, qt 4.2.2
particle->setPos(xpos[i],ypos[i]);
//particle->update(0,0,10,10);
holeScene[holeNum]->addItem(particle);
//holeView[holeNum]->rotate(360);
QGraphicsPixmapItem *particle = new QGraphicsPixmapItem(particlepng);
particle->setPos(xpos[i],ypos[i]);
//particle->update(0,0,10,10);
holeScene[holeNum]->addItem(particle);
//holeView[holeNum]->rotate(360);
To copy to clipboard, switch view to plain text mode
Hope I've given enough info, Thanks
Bookmarks