Cannot open include file: 'QWidget': No such file or directory

解决方法:(vs2008中)

1、"C/C++" -> "General" ->"Additional Include Directories"中,加入   ;"$(QTDIR)\include\QtNetwork"。

2、debug下:

     “Linker” -> "Input"-> "Additional Dependencies"中,加入 QtNetworkd4.lib

     release下:

      “Linker” -> "Input"-> "Additional Dependencies"中,加入 QtNetwork4.lib

或者:

1、把#include <QNetworkAccessManager>改为#include <QtNetwork/QNetworkAccessManager>

2、debug下:

     “Linker” -> "Input"-> "Additional Dependencies"中,加入 QtNetworkd4.lib

     release下:

      “Linker” -> "Input"-> "Additional Dependencies"中,加入 QtNetwork4.lib

编译,就可以了。

上一篇:知识图谱数据存储


下一篇:出现Uncaught Error: Minified exception occurred; use the non-minified dev environment for the full err