1、读取http的请求数据
QByteArray array;
array.append(reply->readAll());
QApplication app(argc, argv);TestMainWindow test;test.show();//Dialog dlg;HttpWindow httpWin;httpWin.testDownloadFile();QObject::connect( &httpWin, SIGNAL(setPic(QPixmap)), &test, SLOT(setPic(QPixmap)));
2、Socket 访问网站数据,不通过IE控件
用qHttpRequest
本文介绍了如何使用QByteArray读取HTTP请求的数据,并通过Socket实现不借助IE控件直接访问网站的方法。
1454

被折叠的 条评论
为什么被折叠?



