Thanks for pointing me in the right direction, I got it working with this code:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.grid = QtGui.QImage()<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.grid.load(&quot;/home/niels/Programmeer/arimaa/images/grid.svg&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; target = QtCore.QRectF(0.0, 0.0, self.width(), self.height())<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; paint.drawImage(target,self.grid)<br><br>Thank you very much<br><br><div class="gmail_quote">On Thu, Apr 17, 2008 at 4:31 PM, Phil Thompson &lt;<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Thursday 17 April 2008, Niels Egberts wrote:<br>
&gt; Now I have found this:<br>
&gt;<br>
&gt; self.picture = QtGui.QPicture()<br>
&gt; self.picture.load(&quot;/home/user/grid.jpg&quot;)<br>
&gt;<br>
&gt; And it gives the error:<br>
&gt;<br>
&gt; QPicturePaintEngine::checkFormat: Incorrect header<br>
&gt;<br>
&gt; I have tried with a jpg, bmp, svg and an png but all of them return an<br>
&gt; &quot;incorrect header&quot;. What am I doing wrong?<br>
<br>
</div>Completely misunderstanding what the QPicture class is for. You want either<br>
QImage or QPixmap.<br>
<br>
Phil<br>
_______________________________________________<br>
PyQt mailing list &nbsp; &nbsp;<a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br>
</blockquote></div><br>