Qt Forum

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

    Qt Academy Launch in California!

    Unsolved not able to download file from URL

    General and Desktop
    network qnetworkrequest file
    4
    4
    1280
    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.
    • Qjay
      Qjay last edited by

      i was following this answer on stackoverflow

      download image

      When i run the code i get an empty document with URL as it's name

      If you have better link or suggestion on how to download image from URL please share it

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        You should also connect the error signals and see what you get.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 1
        • T
          thEClaw last edited by

          Have you manually double-checked if the link is correct? Print it out using qDebug() or something similar. Also, as SGaist said, the error-messages will probably give you a good hint of what's going on.

          1 Reply Last reply Reply Quote 0
          • Bharathi
            Bharathi last edited by

            QNetworkRequest req(url);
            reply=qnam.get(req);
            QObject::connect(reply,SIGNAL(finished()),this,SLOT(slotFinished()));

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