#67: PyQt:: QIcon does not load file
--------------------------------------+-------------------------------------
 Reporter:  [email protected]  |       Owner:  giovannibajo      
     Type:  defect                    |      Status:  new               
 Priority:  normal                    |   Milestone:  PyInstaller 1.4   
Component:  PyInstaller               |     Version:  PyInstaller 1.3   
 Severity:  normal                    |    Keywords:  PyQt, Icon, Window
--------------------------------------+-------------------------------------
 I am using PyQt GPL 4.4.3 for Python 2.5.4 and the latest PyInstaller r672
 on Windows XP SP2.

 EXE(icon='test.ico') works flawlessly (with or without UPX) and produces
 an .exe file showing the correct icon.

 But the application window always shows the default "blue butterfly" icon.

 [[BR]]
 Running directly from Python, both ways to load the icon work perfect,
 uic.loadUi()
 {{{
   <property name="windowIcon">
    <iconset>
     <normaloff>test.ico</normaloff>test.ico</iconset>
   </property>
 }}}
 and mainwindow.setWindowIcon(QIcon('test.ico')).

 [[BR]]
 There are some differences between the automatic loading by uic.loadUi()
 and the manual loading with QIcon():
 {{{
 print [[icon.actualSize(QtCore.QSize(1000, 1000)), icon.isNull(),
 icon.isDetached(), icon.cacheKey(), icon.serialNumber()] for icon in
 [mainwindow.windowIcon(), QIcon('test.ico')]]
 }}}

 test.py:
 [[QSize(118, 118), False, False, 8589934592L, 2], [QSize(118, 118), False,
 True, 17179869184L, 4]]

 test.exe:
 [[QSize(-1, -1), True, True, 0L, 0], [QSize(-1, -1), False, True,
 8589934592L, 2]]

-- 
Ticket URL: <http://www.pyinstaller.org/ticket/67>
Pyinstaller <http://www.pyinstaller.org>
PyInstaller Project
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/PyInstaller?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to