[PyQt] QGraphicsPolygonItem / porting from QCanvas to
QGraphicsScene
Phil Thompson
phil at riverbankcomputing.com
Wed Jan 21 19:45:57 GMT 2009
On Wed, 21 Jan 2009 11:30:33 -0800, Brian Kelley <kelley at eyesopen.com>
wrote:
> You are having the same problem but in a slightly different way. It
looks
> like the manual you are using is wrong, btw.
>
> Here are the constructors for QGraphicsPolygonItem:
>
> http://doc.trolltech.com/4.4/qgraphicspolygonitem.html
>
> QGraphicsPolygonItem ( QGraphicsItem * parent = 0 )
> QGraphicsPolygonItem ( const QPolygonF & polygon, QGraphicsItem * parent
=
> 0 )
>
> Note that neither take a scene. I wonder why your manual says that it
> does?
Because it does - but the argument is obsolete.
Phil
More information about the PyQt
mailing list