集成 qt-addin 和 vs2008 时遇到问题

发布于 2024-09-18 07:57:56 字数 605 浏览 3 评论 0原文

我编写了这个简单的程序,它没有通过使用 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”:没有这样的文件或目录

关于我的问题的一些说明:

  1. 我安装了 msvc2008 为 Windows 编译的 qt 库。
  2. 另外,我已经修补了vs2008的sp1
  3. 最后我安装了Qt Addin 1.1.5并正确配置它
  4. 我尝试将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:

  1. I have the qt libs compiled by msvc2008 for windows installed.
  2. In addition, i have patched the sp1 of vs2008
  3. Finally i have installed the Qt Addin 1.1.5 and configure it correctly
  4. 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

听闻余生 2024-09-25 07:57:56

尝试添加 G:\Qt\4.6.3VS\include 作为包含目录

try to add G:\Qt\4.6.3VS\include as include directory

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文