Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[solved] Howto download HTTP (GET)
How can I download a website via something like httpget to e.g. a string ?
koahnig last edited by
Did you have a look to the "HTTP example":http://developer.qt.nokia.com/doc/qt-4.8/network-http.html aready?
Can this also be realized more easily within the qml without additional files?
Please be aware that while QML is excellent for creating beautiful and fluid interfaces, for most heavy lifting you will need to use C++ files to fill in the needs of your application logic.
kbcool last edited by
Actually xmlhttprequest would make this easy...
If you just want a text string then change this line:
@var a = doc.responseXML.documentElement;@
@var a = doc.responseText;@
I hope that helps.
This worked great!
I didn't think, that it is so easy.