Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
QIcon can not see icons on another computer
I have a problem with the library QIcon. The icons show up but only on my computer, where I have installed QtCreator, and on other computers icons are not displayed. Below I've added a piece of code like assigns an icon to the item QListWidget.
Did you deploy the icon file has well as the corresponding image format plugin with your application ?
If you propagates by imageformats folder to "C: \ Qt \ Tools \ QtCreator \ bin \ plugins \ imageformats" is so
That I didn't understand.
However, since you are copying your software somewhere else, did you go throughout the "Windows deployment":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html documentation ?
There's also this nice "wiki":http://qt-project.org/wiki/Deploy_an_Application_on_Windows entry
MuldeR last edited by
Just a suggestion:
You can use the "Qt Resource System":http://qt-project.org/doc/qt-5/resources.html to have the icon built-in in your program file. Then you can just use QIcon(":/firefox.ico") without having to worry about the icon file being present on the user's machine...
(You'd still have to deploy the image format plugin's though, if you use dynamic linking. Use static linking to create 100% self-contained EXE file)
@SGaist Thanks, you were right. Just not copied the files what you need :)