研究了 几天...又发现了问题
Qt Creator编译的程序c;在其工程文件夹下会有一个debug文件夹c;其中有程序的.exe可执行文件。但Qt Creator默认是用动态链接的c;就是可执行程序在运行时需要相应的.class="tags" href="/tags/DLL.html" title=dll>dll文件。我们点击生成的.exe文件c;首先可能显示“color: #ff0000;">没有找到mingwm10.class="tags" href="/tags/DLL.html" title=dll>dllc;因此这个应用程序未能启动。重新安装应用程序可能会修复此问题。”表示缺少mingwm10.class="tags" href="/tags/DLL.html" title=dll>dll文件。
解决这个问题我们可以将相应的.class="tags" href="/tags/DLL.html" title=dll>dll文件放到系统中。在Qt Creator的安装目录的class="tags" href="/tags/QT.html" title=qt>qt文件下的bin文件夹下(我安装在了D盘c;所以路径是D:/Qt/class="tags" href="/tags/2010.html" title=2010>2010.02.1/class="tags" href="/tags/QT.html" title=qt>qt/bin)c;可以找到所有的相关.class="tags" href="/tags/DLL.html" title=dll>dll文件。在这里找到color: #ff0000;">mingwm10.class="tags" href="/tags/DLL.html" title=dll>dllcolor: #000000;">文件c;color: #000000;">将其复制到color: #ff0000;">C:/WINDOWS/systemcolor: #000000;">文件夹下c;即可。下面再提示缺少什么class="tags" href="/tags/DLL.html" title=dll>dll文件c;都像这样解决就可以了