Qt示例项目不运行
Qt example projects don't run
我最近下载了QT,并试图熟悉它。但是,我无法运行示例项目!当我尝试运行其中一个示例时,它会退出并显示以下消息:
Starting C:QtExamplesQt-5.4build-gui-Desktop_Qt_5_4_1_MinGW_32bit-Debugrasterwindowdebugrasterwindow.exe...
This application failed to start because it could not find or load the Qt platform plugin "windows".
Available platform plugins are: minimal, offscreen.
Reinstalling the application may fix this problem.
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
C:QtExamplesQt-5.4build-gui-Desktop_Qt_5_4_1_MinGW_32bit-Debugrasterwindowdebugrasterwindow.exe exited with code 3
我看到了几个关于这个错误的问题,但所有问题都是使用Visual Studio的。我只是使用默认的QT编辑器,并没有对示例项目进行任何更改。此外,当我尝试编写一个简单地创建窗口的基本应用程序时,它运行时没有错误消息,但没有创建窗口。我仍然可以编写一个使用cout的"helloworld"程序,但QT不会创建小部件窗口。
我在Windows7 32位,使用默认的Qt编辑器。安装过程中是否跳过了一些重要步骤?我刚刚运行了安装程序的可执行文件。
错误是由于程序找不到qwindows.dll。
您应该在platforms
目录中选中qwindows.dll
。
.../platforms/qwindows.dll
相关文章:
- 运行同一解决方案的另一个项目的项目
- CMake-按正确顺序将项目与C运行时对象文件链接
- 在编译时,C++项目抛出错误 C2228,这是预期的,因为控件在运行时未达到该点
- 在cmake安装后从QtCreator运行项目
- iOS:在真实设备上运行项目时出错
- Eclipse 不会运行 c++ 项目
- 如何在Visual Studio 2008(C++项目中运行项目后生成规则而不进行重建
- 当同一项目中涉及多个源文件和头文件时,如何在 Visual Studio 中编译和运行项目
- 无法在 eclipse+cygwin+cdt 上运行 C/C++ 项目
- 我可以从 NTFS 分区在 Ubuntu 中运行C++项目吗?
- 运行 c++ 项目时出现 Clion 错误
- 在 Visual Studio 中多次运行 C++ 项目 main()
- 无法在QtCreator 2.8.1中运行项目...?
- 在Visual Studio 2015中以C++98模式运行项目
- Visual Studio -在Visual Studio之外运行项目
- Netbeans Cpp编译和运行项目,但不能使用cppunit进行测试
- 如何在msvc 2010上运行C项目
- 在eclipse、Red Hat Linux中运行c++项目时出现问题
- Visual Studio 2012 LNK1168每次我重新运行项目
- 从另一台PC/VS生成/运行项目时缺少MSVCR100D.dll