<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> ----- Forwarded Message -----<br>  <b><span style="font-weight:bold;">From:</span></b> Dimitar Dobrev <dpldobrev@yahoo.com><br> <b><span style="font-weight: bold;">To:</span></b> Ruth Ivimey-Cook <ruth@ivimey.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Friday, February 1, 2013 3:05 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Kde-bindings] Qyoto issues - QPainter, QSvgGenerator<br> </font> </div> <br>
<div id="yiv1381883686"><div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><br><div><span class="yiv1381883686tab">    Ruth,</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><br><span class="yiv1381883686tab"></span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv1381883686tab">    1. SVG - yes, these properties are really missing, this is a pure bug; I'll take a look tonight;</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv1381883686tab">    2. </span>setOverrideCursor - this method is gone
 in Qyoto because I merge all get/set methods into
 C# properties; that is, you've correctly found out that QApplication.OverrideCursor is the substitute to use. About QApplication.OverrideCursor = Qt.CursorShape.WaitCursor; , apparently PyQt has a convenient implicit conversion operator because otherwise this isn't supposed to work. If you look at the Qt docs for QApplication::<span class="yiv1381883686tab"></span>setOverrideCursor you'll see:</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv1381883686tab">    </span><span class="yiv1381883686tab">    </span>QApplication::<span class="yiv1381883686tab"></span>setOverrideCursor(QCursor(Qt::WaitCursor));</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv1381883686tab">   
 </span><span class="yiv1381883686tab">That is, you need to pass a
 </span><span class="yiv1381883686tab"></span>QCursor, not just an enum value. In Qyoto this would look like:</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv1381883686tab">    </span><span class="yiv1381883686tab">    </span>QApplication.OverrideCursor = new QCursor(Qt.CursorShape.WaitCursor);<br><span class="yiv1381883686tab">    3. </span>QGraphicsItem.Scale has two overloads; the one with 0 parameters is not obsolete but the one with 2 is (Qt 4.8.4). The comment there hasn't been generated well because I use regular expressions to extract the documentation and apparently there are come cases I do not handle well yet. Anyway, the substitute is setTransform(QTransform::fromScale(sx, sy), true).</div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times,
 serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv1381883686tab">    Regards,</span></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv1381883686tab">    </span><span class="yiv1381883686tab">Dimitar Dobrev<br></span></div><div><br></div>  <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Ruth Ivimey-Cook <ruth@ivimey.org><br> <b><span style="font-weight:bold;">To:</span></b> Dimitar Dobrev
 <dpldobrev@yahoo.com>; KDE bindings for other programming
 languages <kde-bindings@kde.org> <br> <b><span style="font-weight:bold;">Sent:</span></b> Friday, February 1, 2013 2:07 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Kde-bindings] Qyoto issues - QPainter, QSvgGenerator<br> </font> </div> <br>
<div id="yiv1381883686">
  

    
  
  <div>
    <div class="yiv1381883686moz-cite-prefix">Dimitar <br>
    </div>
    <blockquote type="cite">
      <div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt;"><span class="yiv1381883686tab"></span><span class="yiv1381883686tab"></span><span class="yiv1381883686tab"></span><span class="yiv1381883686tab"></span>
        <div><span class="yiv1381883686tab">    </span><span class="yiv1381883686tab">Sorry about
            that "End" property. I've already fixed it but I haven't
            uploaded binaries yet. I'll do this tonight. In the
            mean-time as a workaround you could just assign an unused
            variable to the End property, the effect would be the same.</span></div>
        <div style="color:rgb(0, 0, 0);font-size:16px;font-family:times new roman, new york, times, serif;background-color:transparent;font-style:normal;"><span class="yiv1381883686tab">    </span>About
          the SVG generator, this one I haven't encountered. I'll
          attempt to include the fix in the tonight binaries.<br>
        </div>
      </div>
    </blockquote>
    Many thanks for your quick response Dimitar.<br>
    <br>
    To be more explicit, the SVG properties I am using are Filename,
    Size, Title and Description. The missing Filename property, in
    particular, makes the class useless as it is used to set the output
    file.<br>
    <br>
    I am also having trouble getting this line, which used to work in
    PyQt, to compile:<br>
               
QtGui.QApplication.[sS]etOverrideCursor(QtCore.Qt.CursorShape.WaitCursor);<br>
    <br>
    although the corresponding:<br>
                QtGui.QApplication.[rR]estoreOverrideCursor();<br>
    <br>
    seems to be compiling ok. Is this my misunderstanding? I did try to
    see if this version of setOverrideCursor would work, but it doesn't
    because of a type mismatch:<br>
                QApplication.OverrideCursor = Qt.CursorShape.WaitCursor;<br>
    <br>
    For the moment, I've commented out both calls in my code but it
    would be good to reinstate them.<br>
    <br>
    Finally, I notice a warning:<br>
                Warning    13    'QtGui.QGraphicsItem.Scale(double,
    double)' is obsolete: '"instead."'    <br>
    which I didn't get in PyQt and isn't marked as obsolete in the qt
    4.8 docs - indeed it was only introduced in qt 4.6. <br>
    <br>
    Regards<br>
    Ruth<br>
    <br>
    <pre class="yiv1381883686moz-signature">-- 
Software Manager & Engineer
Tel: 01223 414180
Blog: http://www.ivimey.org/blog
LinkedIn: http://uk.linkedin.com/in/ruthivimeycook/ </pre>
  </div>

</div><br><br> </div> </div>  </div></div></div><br><br> </div> </div>  </div></body></html>