[Qgis-developer] QgsMapCanvasItem::paint in python
Denis Rouzaud
denis.rouzaud at gmail.com
Wed Feb 12 05:57:37 PST 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20140212/c2423b29/attachment-0001.html>
More information about the Qgis-developer
mailing list