[PyKDE] PyQt4 windowIcon

Tina I tinaweb at bestemselv.com
Sun Mar 4 10:36:54 GMT 2007


Sibylle Koczian wrote:
> I can see what's wrong (at least I think I see it). But I'm not using 
> the designer, so I don't really know what to do about it. The 
> setWindowIcon method expects the icon in the parent directory, not in 
> the same directory as the application itself (that would be 
> "./log.png"). You might simply move the icon and try again - or is 
> that not an option?
>
> HTH
> Sibylle 
Aha! That's exactly what happens. When I change it to a single dot it 
works. The problem is that every time i 'regenerate' the gui file with 
pyuic4 it changes it back. But I guess I can set it in my main program 
instead. The parent directory is not an option.

This must be a bug or are there some rational explanation for it? If the 
application resides in "~/application/" you don't want to put random 
icons and stuff right in the user's root.

Tina







More information about the PyQt mailing list