解决方法:(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
编译,就可以了。