Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
411 views
in Technique[技术] by (71.8m points)

c++ - Keep getting Protocol "" is unknown error in Qt

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()));

I have the above code in my Qt 4.8.4 application, but in the dataFetchFinished() slot I keep detecting the error: Protocol "" is unknown

The debug output is: "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"

Any help is much appreciated!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...