First of all, we thank everyone for their contribution to understanding the problem and its solution.
Now, to solve this problem, you should read this article. Precisely, to first understand what the problem is, and then how to solve it. [ Deploying a Real Qt Application - Understanding More Qt ]
Conclusion In short:
The cause of the problem is the path of the plugins that you used in your project .
The default path for the plugins that you used in your project is qt path folder , but when the qt development environment is not installed on your computer, your application will not start, because by default path to plugins directed to qt path folder , and This is problem.
We need to direct / change the path of the plugins to the folder of your application.
There are several ways to directly / change the path. I mentioned how I already tried and managed to solve the problem.
There is a static addLibraryPath method (const QString and path) , we will use this method to directly / modify the plugins path .
Example:
int main(int argc, char *argv[]) { QApplication::addLibraryPath("pluginsFolder"); QApplication a(argc, argv); Widget w; w.show(); return a.exec(); }
pluginsFolder is a folder containing all the plugins that you used in your project.
You can also change
QApplication::addLibraryPath("pluginsFolder");
For
QApplication::addLibraryPath(".");
This means that the plugins in the main application folder are not in a subdirectory named plugins .
And don't forget to use the windeployqt.exe tool to deploy your project.
And finally, I hope that this short explanation will be useful for those after me who will face the same problem.