Deployment Qt apps on Windows

Russian Engineers · 83K views · 2015 · 3:17

Open on YouTube

C, C++, Rust, Go & systems languagesTesting, debugging & developer toolstutorial

Why Stack Overflow recommends it

Stack Overflow users link it when answering or asking how to turn a Qt app into a standalone Windows .exe using windeployqt.

Recommended by 2 people across 2 different months, 2017 to 2020.

What it is

A short screencast from the Russian Engineers channel showing how to use Qt's windeployqt.exe utility to package a Qt application for Windows. It walks through running the tool so the required DLLs and plugins are gathered next to the executable.

What people said

Recommends hossein · 2019-11 · Stack Overflow · on “How to create executable file for a Qt Application?”

Do these steps: 1- Open qt command-line window. [LINK] 2- Go to the directory which .exe file exists (using cd command). 3- Run windeployqt.exe --quick . command 4- Run your exe file and enjoy it! This video is great [this video]

Recommends ecstrema · 2020-03 · Stack Overflow · on “Copying Qt DLLs to executable directory on Windows using CMake”

This is the right answer. windeployqt is a simple and effective tool built by Qt for Qt. Here's a tutorial [this video]

Cites SylusWalker · 2017-05 · Stack Overflow · on “Qt 5.8 - SQLite database created/opened when using Qt Creator to run application, but not when deployed with windeployqt”

My Qt C++ project involves dynamically creating and working with SQLite databases. I'm encapsulating everything to do with the databases inside a class called Database. Here is my method to either create a database file if it doesn't exist, or open it if it does: void Database::connectDB(QString databaseName) { QString fPath = QCoreApplication::applicationDirPath(); fileName = fPath + "/DBs/" + databaseName + ".db"; db = QSqlDatabase::database(connectionName); db.setDatabaseName(fileName); } connectionName and fileName are QStrings created elsewhere and are valid. To put it simply, this code works. But only when run from Qt Creator. I've verified that the absolute path I feed to setDatabaseN

Cites Chinh Nguyen Huu · 2019-04 · Stack Overflow · on “Qt5 - Why the .exe don't run anything when make a deployment?”

I have a problem with building an application file (*.exe) on windows. I create a simple project and run on QtCreator the result is: [LINK] It hasn't any error and warning. After that, I build it with release using kit is Desktop Qt 5.12.1 MSVC2017 64-bit , I got a folder release after rebuild with qmlTest.exe To continues, I deploy it to follow this link Deployment Qt apps on Windows [this video] I got some files into the release file of my project [LINK] But when I click on qmlTest.exe nothing appears, no error, no missing dll files notifications. I checked process task and no qmlTest was running. Who can tell me what I was wrong? Thanks for your kind help!

Cites Elena Valari · 2019-06 · Stack Overflow · on “The procedure entry point _Z21qRegisterResourceDataiPKhS0_S0_ could not be located in the dynamic link library”

I am trying to create an .exe file from a qt application. The program is running correctly inside the qt creator. I tried to follow the deployment procedure that i find searching the web (for example: [this video] ) However, the .exe file can be run successfully only if it is in the same dir as the compiler (i am using mingw73_32). And the error that i am getting back is the following: The procedure entry point _Z21qRegisterResourceDataiPKhS0_S0_ could not be located in the dynamic link library. I would like to point that it seems that no dll files are missing. Can you please help me to solve this issue? Thanks a lot,