[PyQt] background corrupted with svg render

Aron Bierbaum aronbierbaum at gmail.com
Thu Sep 3 02:26:22 BST 2009


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 <missive at hotmail.com>:
>
> 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    PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>



More information about the PyQt mailing list