Access /home/user/.application from QML
-
Hi,
I'm trying to develop a simple QML application that needs to store xml files (for access in an XmlListModel) in /home/user/.application or similar (e.g. C:\Users\user.application or similar on Windows). If the directory doesn't exist, it should create it and download the xml files off the internet. So far, I have not been able to specify a "source" tag with that. How can I do it? Thanks
Keba
-
Hi, ~keba!
Welcome to Qt Developer Community!
Why can't you give this work to C++ core? QML gives you powerful opportunity to use C++ classes in QML code.
Learn about "how to use c++ classes in qml".
-
I would, if I knew how this works. But I'm a complete beginner to programming, and QML seemed easy enough... Until now.
-
Ok. I will try to explain a bit. QML runs as C++ code. All QML widgets and objects. But QML does not support that functionality C++ has. So, in this case QML has interface to work with C++ code.
Learn about C++ and QML linkage