Thanks for pointing me in the right direction, I got it working with this code:<br><br> self.grid = QtGui.QImage()<br> self.grid.load("/home/niels/Programmeer/arimaa/images/grid.svg")<br> target = QtCore.QRectF(0.0, 0.0, self.width(), self.height())<br>
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 <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> 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>
> Now I have found this:<br>
><br>
> self.picture = QtGui.QPicture()<br>
> self.picture.load("/home/user/grid.jpg")<br>
><br>
> And it gives the error:<br>
><br>
> QPicturePaintEngine::checkFormat: Incorrect header<br>
><br>
> I have tried with a jpg, bmp, svg and an png but all of them return an<br>
> "incorrect header". 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 <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>