PDA

View Full Version : about setting executable file icon



Raul
14th June 2010, 02:31
hi guys!
I would like to know how to add an Icon to an executable QT file in linux. Should I modify the .pro file?
Is there any method that could change it?

Thanks!

aamer4yu
14th June 2010, 05:35
What did you try till now ?
You can set the icon with QApplication::setWindowIcon and embedd the icon as a resource in qrc.

Raul
14th June 2010, 08:54
What did you try till now ?
You can set the icon with QApplication::setWindowIcon and embedd the icon as a resource in qrc.

this method i have tried.but the executable file's icon didn't change.

wysota
15th June 2010, 00:37
You need to create a .desktop file for your application and deploy it in the system.

Raul
15th June 2010, 01:47
You need to create a .desktop file for your application and deploy it in the system.


If you can tell me the method in detail?thanks!

wysota
15th June 2010, 02:11
http://www.freedesktop.org/wiki/Howto_desktop_files