PDA

View Full Version : A problem of update() and paint() of QGraphicsScene in Qt 4.2.2



socrates
26th December 2007, 01:19
I writed a inherited class of QGraphicsItem, say NewItem.
and I implemented my own paint().

I set a timer in my program and refresh all my NewItem objects by calling update() in QGrahpicsScene.

The program is working well in Qt 4.2.3, but not in Qt 4.2.2(and I must use Qt 4.2.2 due to some other reason...). The NewItem's paint() is not called.

It seems that 4.2.2 has some bugs in update() of QGraphicsScene, is there some way I can solve this problem?

wysota
26th December 2007, 10:58
Can we see the code?