Re: [PyQt] Re: rendering svg

2008-04-17 Thread Niels Egberts
Thanks for pointing me in the right direction, I got it working with this code: self.grid = QtGui.QImage() self.grid.load("/home/niels/Programmeer/arimaa/images/grid.svg") target = QtCore.QRectF(0.0, 0.0, self.width(), self.height()) paint.drawImage(target,self.grid

Re: [PyQt] Re: rendering svg

2008-04-17 Thread Phil Thompson
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

[PyQt] Re: rendering svg

2008-04-17 Thread Niels Egberts
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? Niels On