I searched every where and i tried many things but i didn't find a way to make a standalone application from my qt project , any ideas ?!
Will I need another application to do it or i will do it with Qt creator ?!
I searched every where and i tried many things but i didn't find a way to make a standalone application from my qt project , any ideas ?!
Will I need another application to do it or i will do it with Qt creator ?!
You need to copy some necessary files into the executable's directory:
Qt5Core.dll
qtwindows.dll
in your "Qt/[release version]/[compiler version]/plugins" folder and copy it into the "plugins" folder you created.Or:
Use windeployqt.exe
. See this answer. As @marco pointed out, the documentation for windeployqt is here.
For QT6: same response, but copy the directory <.../platforms> in the local directory. There is no qtwindows.dll, and the .exe search in the <plugins/platforms> directory. With the whole directory it works fine. Solution worked also with QT5 on an other PC.