Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can a QML app receive QML files through the internet like an HTML app?
For example, can I make a QML app that can receive and render QML files from a URL, behaving similar to an HTML app/browser?
Aha, wait! I think I found the answer: the QML Loader Element (http://doc.qt.digia.com/qt/qml-loader.html).
I haven't tested yet, but I'm assuming it will let me get QML from any URL on the net.
This is good because then you can easily make a server that serves either HTML or QML using a templating engine so the important data is the same. :D
Jens last edited by
Yep this would work. But feeding live QML code through a web server is certainly not a very safe thing to do. Keep in mind that with most html browsers you are sandboxed. With QML you are most likely not unless you write your own sandbox. I would strongly suggest that you let the server send raw json or xml and that you parse the data on the client side instead. :)
That's good info to know.