<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi all,<br>
    <br>
    I am trying to subclass QgsMapCanvasItem in python.<br>
    <br>
    From the API doc, I read that I should reimplement paint( QPainter *
    painter ) <br>
    but not paint( QPainter * painter, QStyleOptionGraphicsItem *
    option, QWidget * widget = 0 );<br>
    <br>
    Anyway, when I implement this one, I get this error:
    <blockquote type="cite">
      <meta name="qrichtext" content="1">
      <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
        margin-right:0px; -qt-block-indent:0; text-indent:0px;"><!--StartFragment-->TypeError:
        paint() takes exactly 2 arguments (4 given)</p>
    </blockquote>
    <br>
    Am I missing something?<br>
    <br>
    Cheers,<br>
    <br>
    Denis<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
  </body>
</html>