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
Forum Updated to NodeBB v4.3 + New Features

not able to download file from URL

Scheduled Pinned Locked Moved Unsolved General and Desktop
networkqnetworkrequestfile
4 Posts 4 Posters 1.6k 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.
  • Q Offline
    Q Offline
    Qjay
    wrote on 9 Jun 2016, 06:23 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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 9 Jun 2016, 20:56 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 9 Jun 2016, 21:06 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
        • B Offline
          B Offline
          Bharathi
          wrote on 10 Jun 2016, 07:15 last edited by
          #4

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

          1 Reply Last reply
          1

          1/4

          9 Jun 2016, 06:23

          • Login

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