views:

374

answers:

2
+2  A: 

I believe you need to reference the .ico file directly from the EXE or DLL that you are creating with py2exe. You seem to have the setup.py script correct, so take a look at: http://www.py2exe.org/index.cgi/CustomIcons. There is an example for wxWidgets, but you could try to adapt it to Qt.

swanson
A: 

Hey,

I would suggest you to create a file called YourApp.rc, add up the following line :

IDI_ICON1   ICON    DISCARDABLE "res/icons/app_icon.ico"

Then in your .PRO file, add up the following lines :

win32{
RC_FILE = YourApp.rc
}

It should fix your problem !

Andy M