I have been having problems when trying to iterate over a list
returned from QGraphicsScene.items(). It appears that even though I
add a QGraphicsWidget instance, I never get it back out. I actually
traced this down when trying to add support to PyQt for Qt 4.4 a few
months ago. The following needs to be added to qgraphicsitem.sip
%ConvertToSubClassCode
switch (sipCpp->type())
{
case 2:
sipClass = sipClass_QGraphicsPathItem;
break;
...
case 9:
sipClass = sipClass_QGraphicsSimpleTextItem;
break;
case 10:
sipClass = sipClass_QGraphicsItemGroup;
break;
default:
sipClass = 0;
}
%End
Thanks,
Aron
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt