0

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 ?!

2 Answers2

0

You need to copy some necessary files into the executable's directory:

  • Qt5Core.dll
  • Any other Qt dlls you depend upon (Qt5Gui, Qt5Widgets, etc.)
  • Create a subfolder called "plugins"
  • Find qtwindows.dll in your "Qt/[release version]/[compiler version]/plugins" folder and copy it into the "plugins" folder you created.
  • Run your executable.

Or:

Use windeployqt.exe. See this answer. As @marco pointed out, the documentation for windeployqt is here.

Community
  • 1
  • 1
jonspaceharper
  • 4,207
  • 2
  • 22
  • 42
0

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.