Okay, here is an example. It is sort of different in that the items don't even show up if you switch windows. I tried this on a real XP box with the same results.
Thanks
mAx
Okay, here is an example. It is sort of different in that the items don't even show up if you switch windows. I tried this on a real XP box with the same results.
Thanks
mAx
Looking at your problem, I think it may well be related to mine (Possible QGraphicsView/Scene bug). I found that the items would only show up if the window was resized.
It's possible that it is a bug in a recent Qt version. I've had the problem on Qt 4.2.2 and KDE's svn qt-copy both under Linux. What versions were your executables built with?
I think there's a bug in this GraphicsTest example. It doesn't add any items to the scene. The view is basically visualizing... nothing :-).
Bitto / Andreas Aardal Hanssen - andreas dot aardal dot hanssen at nokia
Nokia Software Manager, Qt Development
My bad, I misread the example, items are indeed added.
The bug is that the items are added at positions like -4200000, 536, but the top-left corner of the scene is set to (0, 0). The defOffset variable, which is added to all X coordinates, seems to be uninitialized. Removing this variable, or setting it to 0, gives me rects and diamonds.
Bitto / Andreas Aardal Hanssen - andreas dot aardal dot hanssen at nokia
Nokia Software Manager, Qt Development
Bookmarks