Import xml from API
-
wrote on 6 Sept 2014, 19:36 last edited by
Good day!
I can't import xml from API with QNetworkAccessManager
Another problem is that in order to enter the API must enter your login and password
I do not know programming, and it would be better to see an example
Help please -
Hi,
You'll have to be more specific, importing xml using QNetworkAccessManager isn't really clear. Do you want to make calls to a REST server through QML ?
-
wrote on 7 Sept 2014, 10:23 last edited by
[quote author="SGaist" date="1410036879"]Hi,
You'll have to be more specific, importing xml using QNetworkAccessManager isn't really clear. Do you want to make calls to a REST server through QML ?[/quote]
most likely yes, is there an alternative?
-
Look in the documentation for QML XMLHttpRequest
-
Hi,
bq. Another problem is that in order to enter the API must enter your login and password
If using QNetworkAccessManager to download, you can connect signal "authenticationRequired":http://qt-project.org/doc/qt-5/qnetworkaccessmanager.html#authenticationRequired to a slot and do the authentication there.
1/5