Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Make multiple asynchronous put/post/get requests using QNetworkAccessManager

    Mobile and Embedded
    2
    3
    2704
    Loading More Posts
    • 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.
    • R
      raj.qtdev last edited by

      Hi,

      I am working on an app where in user should be able to start uploading or downloading multiple files or different types. These http requests should have no effect on UI of the app. Can somebody let me know how to do this in an optimized way? Would be better if you could name the classes as well or an example.

      Thanks

      1 Reply Last reply Reply Quote 0
      • raven-worx
        raven-worx Moderators last edited by

        QNetworkAccessManager is your way to go. It handles the requests asynchronously by default so there is no blocking on the GUI.
        There are several examples on the web....but the "docs of QNAM":http://qt-project.org/doc/qt-5.0/qtnetwork/qnetworkaccessmanager.html#details should be already very clear.

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply Reply Quote 0
        • R
          raj.qtdev last edited by

          thanks raven.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post