Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Access /home/user/.application from QML
Qt 6.11 is out! See what's new in the release blog

Access /home/user/.application from QML

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    keba
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on last edited by
      #2

      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".

      1 Reply Last reply
      0
      • K Offline
        K Offline
        keba
        wrote on last edited by
        #3

        I would, if I knew how this works. But I'm a complete beginner to programming, and QML seemed easy enough... Until now.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tucnak
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved