集成 qt-addin 和 vs2008 时遇到问题
我编写了这个简单的程序,它没有通过使用 vs2008 IDE 的编译阶段,但使用 qt-creator 成功构建了它。
#include <QtGui/QApplication>
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPushButton w;
w.show();
return a.exec();
}
错误信息如下:
1个致命错误C1083:无法打开包含的文件:“QtGui/QApplication”:没有这样的文件或目录
关于我的问题的一些说明:
- 我安装了 msvc2008 为 Windows 编译的 qt 库。
- 另外,我已经修补了vs2008的sp1
- 最后我安装了Qt Addin 1.1.5并正确配置它
- 我尝试将G:\Qt\4.6.3VS\include\QtGui添加到vc++包含目录,但这不起作用任何一个。
这是一个罕见的问题吗?感谢您的任何提示。
i wrote this simple programme which did not pass the compiling phase using vs2008 IDE while it is successfully built using qt-creator.
#include <QtGui/QApplication>
#include <QtGui>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QPushButton w;
w.show();
return a.exec();
}
The error info is listed below:
1 fatal error C1083: can not open the included file:“QtGui/QApplication”: No such file or directory
Some notes about my problem:
- I have the qt libs compiled by msvc2008 for windows installed.
- In addition, i have patched the sp1 of vs2008
- Finally i have installed the Qt Addin 1.1.5 and configure it correctly
- I have tried to add G:\Qt\4.6.3VS\include\QtGui to vc++ include directory,which did not work either.
Is this a rare seen problem ? Thanks for any hints .
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试添加 G:\Qt\4.6.3VS\include 作为包含目录
try to add G:\Qt\4.6.3VS\include as include directory