You need to fill the initial QPixmap with transparency before painting.

        self.star = QtGui.QPixmap(50, 50)
        self.star.fill(QtCore.Qt.transparent)

-Aron


2009/9/2 Lee Harr <[email protected]>:
>
> Hi;
>
> I've created an example that shows corruption of the
> background when rendering an svg with transparency.
>
> I also notice corruption in a splash screen from svg.
>
>
> The code is here:
>
> http://pybotwar.googlecode.com/hg/test/vbox.py
> http://pybotwar.googlecode.com/hg/test/vbox.ui
> http://pybotwar.googlecode.com/hg/test/star.svg
>
>
> Manually rendering the svg to a transparent .png
> shows no such corruption.
>
> Am I doing something wrong? Or is this a PyQt bug?
>
>
> _________________________________________________________________
> More than messages–check out the rest of the Windows Live™.
> http://www.microsoft.com/windows/windowslive/
> _______________________________________________
> PyQt mailing list    [email protected]
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to