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 author="sathism" date="1294142876"]
I don't want to go for C++ way.
[/quote]
sorry to say, but you have to, anyway. QML has no built-in instruments to write files at all -
[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. -
[quote author="ixSci" date="1294159391"]
I'm not familiar with JavaScript[/quote]
that's the point. if you don't know concrete way to do it, just don't say. QML and JavaScript are a whole, and when I said QML, I meant both -
Kxyu, sorry. You are right it is currently impossible.
-
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