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. Downloading dll file
Qt 6.11 is out! See what's new in the release blog

Downloading dll file

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 814 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.
  • K Offline
    K Offline
    Kaluss
    wrote on last edited by
    #1

    Hello,
    got following problem:

    1. I'm downloading file thru QNetworkAccessManager
    2. I recived QNetworkReply* reply which reply->size() returns correct size value of downloaded file.
    3. When Im trying to save it to the disk it lose some data

    Im saving file in following way:
    @
    QFile file(fille.dll);
    if(file.open(QIODevice::WriteOnly)
    {
    file.write(reply.readAll());
    file.close
    }
    @
    Anyone know where is the problem or what Im doing worng?

    BR
    Tomek

    P.S.
    The difference between sizes is: 11902976(reply) 11894784(reply->readAll())

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      Did you wait for the finished() signal?

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andreyc
        wrote on last edited by
        #3

        Take a look on "Network Download Example":http://qt-project.org/doc/qt-5/qtnetwork-download-example.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