File System Access and Http File Download in QML
-
I need to download a file from internet and save it in client's machine.Is there any way to do this in QML?.
I couldn't find any example for that in the official documentation.
I don't want to go for C++ way.Thanks in Advance.
-
[quote]sorry to say, but you have to, anyway. QML has no built-in instruments to write files at all[/quote]
But JavaScript does. And JavaScript is embedded into QML.
I'm not familiar with JavaScript but, sathism, I think JS is the right way to accomplish your task. -
I think this is the place where i should look into
"http://doc.qt.nokia.com/4.7-snapshot/qml-extending.html":http://doc.qt.nokia.com/4.7-snapshot/qml-extending.html -
Well, it was done in the getting started example: http://doc.qt.nokia.com/4.7/gettingstartedqml.html
"This":http://blogs.kde.org/node/4437 example uses PySide to expose a standard directory model to the QML. Not sure if similar is possible in C++
Best of all perhaps: http://doc.qt.nokia.com/4.7/src-imports-folderlistmodel.html