PDA

View Full Version : setting main window icon on linux platform



jyoti kumar
20th June 2007, 11:31
I have used
QApplication::setWindowIcon(QIcon(":/pss_icons/datapath.png"));
I have also used the same icon for one of the toolbar buttons.
I have compiled it using .qrc.
The toolbar icon is getting displayed but the application icon is coming as black rectangle.

But the icon is getting displyed on windows. Pls suggest.
Pls suggest.

Thanks

guilugi
20th June 2007, 17:35
Which Desktop are you using (Kde, Gnome, Enlightenment, ...) ?

I guess this problem has nothing to do with your code...
A small compilable sample, maybe ? :-)

Guilugi.

jyoti kumar
21st June 2007, 05:50
Its icewm desktop. I tried with Gnome & KDE, its getting displayed on them.
Can you pls suggest something for icewm?
Thanks a lot.

guilugi
21st June 2007, 10:13
Well, I'll have a look at IceWM forums, maybe it can be simply configured.

IceWM is a powerful Window Manager, entirely configurable, and maybe this option is disabled in the default configuration : a single would solve it all :)

I'll keep you in touch.

Guilugi.

guilugi
21st June 2007, 10:53
You should check your icewm configuration file, and tune it a little.
There's some information here :
http://www.icewm.org/manual/icewm-8.html

Guilugi.