Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. not able to download file from URL

not able to download file from URL

Scheduled Pinned Locked Moved Unsolved General and Desktop
networkqnetworkrequestfile
4 Posts 4 Posters 1.9k 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.
  • QjayQ Offline
    QjayQ Offline
    Qjay
    wrote on last edited by
    #1

    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
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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
      1
      • T Offline
        T Offline
        thEClaw
        wrote on last edited by
        #3

        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
        0
        • BharathiB Offline
          BharathiB Offline
          Bharathi
          wrote on last edited by
          #4

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

          1 Reply Last reply
          1

          • Login

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