Objective
The problem stems from the time I got back to the old computer when I was ready to write a QT application, and there were many similar solutions on the web. I also learn from others here. , but here, bloggers want to add something to their articles. OK, first look at the phenomenon of the problem:
The reason for this problem is that QT has failed to load the dynamic library when compiling the link dynamic library. Because the QT creator default value is dynamically linked, you need to link the dynamic library (. dll file) When you run the application. The cause of this problem is that the QT installation is incorrect or the environment variable is not configured correctly. workaround Place the corresponding XXX.dll file generated by the QT installation into the system directory: the 32-bit operating system is placed under the "C:\Windows\System32" directory, and the 64-bit operating system is placed in the "C:\Windows\SysWO W64 "directory; for example, my QT is installed in D:\ Under the qt-5.4.2 directory, copy all the XXX.dll files from the XXX.dll dynamic library under the Bin folder under the Qt-creator folder and the bin file in the MinGW compiler directory to the directory described above, as shown in the following figure:
OK, this way you can recompile and run your QT application.