Hi all,

I am trying to subclass QgsMapCanvasItem in python.

From the API doc, I read that I should reimplement paint( QPainter * painter ) but not paint( QPainter * painter, QStyleOptionGraphicsItem * option, QWidget * widget = 0 );

Anyway, when I implement this one, I get this error:

TypeError: paint() takes exactly 2 arguments (4 given)


Am I missing something?

Cheers,

Denis

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to