Il giorno 04/gen/2010, alle ore 12.54, Antonio Valentino ha scritto: > Hi list, > I' having some problem with a custom QGraphicsItem: the option parameter > seems to contain wrong values. > Using the included test code I would expect an option.levelOfDetail value of > 0.5 and an option.exposedRect smaller than the entire item rect. > Running the following test cone on Mac OS X Snow Leopard I always get: > > option.exposedRect PyQt4.QtCore.QRectF(0.0, 0.0, 1024.0, 1024.0) > option.levelOfDetail 1.0 > > Is it a bug?
No it is a Qt API change: http://qt.gitorious.org/qt/qt/blobs/d16ba0a93d611689bce9a2732a1cc8c9a317f5bf/dist/changes-4.6.0#line1075 the trick is setting QGraphicsItem::ItemUsesExtendedStyleOptions -- Antonio Valentino
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
