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. File System Access and Http File Download in QML
Qt 6.11 is out! See what's new in the release blog

File System Access and Http File Download in QML

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 4 Posters 10.4k 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.
  • S Offline
    S Offline
    sathism
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kxyu
      wrote on last edited by
      #2

      [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

      1 Reply Last reply
      0
      • I Offline
        I Offline
        ixSci
        wrote on last edited by
        #3

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

        1 Reply Last reply
        0
        • K Offline
          K Offline
          Kxyu
          wrote on last edited by
          #4

          [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

          1 Reply Last reply
          0
          • I Offline
            I Offline
            ixSci
            wrote on last edited by
            #5

            Kxyu, sorry. You are right it is currently impossible.

            1 Reply Last reply
            0
            • S Offline
              S Offline
              sathism
              wrote on last edited by
              #6

              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

              1 Reply Last reply
              0
              • H Offline
                H Offline
                hamishwillee
                wrote on last edited by
                #7

                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

                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