setting main window icon on linux platform
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
Re: setting main window icon on linux platform
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.
Re: setting main window icon on linux platform
Its icewm desktop. I tried with Gnome & KDE, its getting displayed on them.
Can you pls suggest something for icewm?
Thanks a lot.
Re: setting main window icon on linux platform
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.
Re: setting main window icon on linux platform
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.