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
编译,就可以了。
标签:Additional,lib,No,Linker,Dependencies,Cannot,file,Input,include 来源: https://www.cnblogs.com/sagerking/p/12205398.html