Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Ok, final answer, it turns out that Qt needs the following file qico4.dll might be different for Qt5, when making your GUI in QtDesigner it automatically loads all the plugins it needs including the above image plug in, however when converting the file into a python script it does not include it unless you add the following code in your script</p> <pre><code>#:Loads the qico plug-in lets you use .ico icons QPlugin = QPluginLoader("qico4.dll") </code></pre> <p>The text below might help others in different situations </p> <p>This is a partial answer to my own question I would like to thank Blender up above, the short answer is you have to convert your icons from .ico into .png files, the problem is that you have to do the whole process of making your application again, these are the steps that I took I first went into the folder where I had my icons and converted them froom .ico into .png icons, I used the tool I got here <a href="http://www.towofu.net/soft/e-aicon.php" rel="nofollow">http://www.towofu.net/soft/e-aicon.php</a> I found this in this site..I love stackoverflow..ahem</p> <p>once your icons are converted to the .png format you must change your .qrc file where you have your icon information and updated with the new icon information, I advise doing it from scratch; once you have your new icons.qrc file you then open your .ui file in QtDesinger and erase all the instances of your old icons from it and then proceed to update them with the newly formatted icons using the icon/resource file.</p> <p>After all of your icons have been updated, you save it and continue with the conversion workflow, i.e convert your 'your_file.ui' to 'newly_converted_file.py' using the pyside-uic.exe converter.</p> <p>Next convert your 'icons.qrc' file into a 'icons_rc.py' using the pyside-rcc.exe command</p> <p>at the end of this process you should only need your icons folder with your .png icons your icons_rc.py file and your application script.</p> <p>After that you can continue to use the Pyinstaller-2.0 as per the manual..</p> <p>As I've said it is a partial answer because it works, however if someone else could tell me or explain to me how to make it work with my original .ico files then I suspect I would not have to go trough the whole process again</p> <p>Upon more research this page was especially helpful <a href="http://qt-project.org/forums/viewthread/17342" rel="nofollow">http://qt-project.org/forums/viewthread/17342</a> </p> <p>so I went into my Qt4.8 folder and did a search for qico4.dll and made a copy of it in the folder where my script is located and the application ran perfectly, If I can find a way to include it inside my script then I think I will have a complete answer, the problem seems to be with Qt and not Pyinstaller, it seems that it needs to be aware of the dll in order to process .ico files</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload