I am using Qt5 with Qt Creator.
My program works fine if I run it from Qt Creator itself, but if I try to run the .exe from the debug or release folder, I will only get the error:
The program can't start because Qt5Widgets.dll is missing from your computer. Try reinstalling the program to fix this problem.
I am new to Qt and have no idea that because of this, I did not find decent results from Google. I already tried reinstalling Qt5 (including the creator), but that didn't help.
My .proj file looks like this:
TEMPLATE = app TARGET = test QT += \ core \ gui \ widgets \ SOURCES += \ main.cpp
And my main.cpp looks like this:
#include <QApplication> #include <QWidget> int main(int argc, char **argv) { QApplication app(argc, argv); QWidget window(); window.show(); return app.exec(); }
And all the code I have.
source share