Thanks, but still the same problem when I pass a reply as QIODevice. Below is the slot that is connected to QNetworkAccessManager::finished signal, so all the data must be arrived, I think.
void MyClass::authenticationFinished(QNetworkReply *reply)
{
QXmlQuery query;
query.setFocus(reply);
query.setQuery("methodResponse/params/param/value/struct/member[name=\"token\"]/value/string(string)");
// ...
}
void MyClass::authenticationFinished(QNetworkReply *reply)
{
QXmlQuery query;
query.setFocus(reply);
query.setQuery("methodResponse/params/param/value/struct/member[name=\"token\"]/value/string(string)");
// ...
}
To copy to clipboard, switch view to plain text mode
The following code works fine:
void MyClass::authenticationFinished(QNetworkReply *reply)
{
QXmlQuery query;
query.setFocus(reply->readAll()); // !pass the string
query.setQuery("methodResponse/params/param/value/struct/member[name=\"token\"]/value/string(string)");
// ...
}
void MyClass::authenticationFinished(QNetworkReply *reply)
{
QXmlQuery query;
query.setFocus(reply->readAll()); // !pass the string
query.setQuery("methodResponse/params/param/value/struct/member[name=\"token\"]/value/string(string)");
// ...
}
To copy to clipboard, switch view to plain text mode
Bookmarks