0
QUrl downloadUrl = QUrl::fromEncoded(downloadUrlStr.toAscii());

qDebug() << downloadUrl.toString();

QNetworkRequest req(downloadUrl);
req.setAttribute(QNetworkRequest::User, id);
QNetworkReply *finalReply = nam->get(req);
connect(finalReply, SIGNAL(finished()),
this, SLOT(dataFetchFinished()));

我的 Qt 4.8.4 应用程序中有上述代码,但在 dataFetchFinished() 插槽中,我不断检测到错误:协议“”未知

调试输出为:"http://192.168.1.1/servlet/com.roving.report.view.excel.ExcelReportServlet?file=661&columns=0&srcType=defineBean&width=0&height=0&reportParamsId=100583&cachedId=662&t_i_m_e=1376086878417&pageStyle=0"

任何帮助深表感谢!

4

0 回答 0