[PyQt] Re: rendering svg

Phil Thompson phil at riverbankcomputing.com
Thu Apr 17 15:31:43 BST 2008

On Thursday 17 April 2008, Niels Egberts wrote:
> Now I have found this:
> self.picture = QtGui.QPicture()
> self.picture.load("/home/user/grid.jpg")
> And it gives the error:
> QPicturePaintEngine::checkFormat: Incorrect header
> I have tried with a jpg, bmp, svg and an png but all of them return an
> "incorrect header". What am I doing wrong?

Completely misunderstanding what the QPicture class is for. You want either 
QImage or QPixmap.


More information about the PyQt mailing list