[PyKDE] bad resolution on designer imported PNGs

Hans-Peter Jansen hpj at urpla.net
Wed Jul 24 14:42:00 BST 2002


On Wednesday 24 July 2002 11:40, Willi Richert wrote:
> Hi,
>
> I have some nice PNG images which I want to use for the toolbar. But, when
> ddesigner/pyuic generates the icons data they don't look as good any more.
> I have to use the PNG file name instead so that they look good
> (QPixmap("forward.png")).
>
> You can see the difference in the attached picture (1,2K only). The left is
> the pyuic generated data, the right is the png given QPixmap as a file
> path.
>
> Any hints?

I came across this a few days before. It's releated to xpm conversion
of semi transparent shadows in the PNG. I got the feeling, this isn't
supported in xpm format. Please somebody correct me, if I'm wrong.

I'm thinking about a tool to inline the images in a module, and load 
them via StringIO.

> willi

Hans-Peter




More information about the PyQt mailing list