Results 1 to 2 of 2

Thread: suddenly datareadProgress total = 0

  1. #1
    Join Date
    Nov 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default suddenly datareadProgress total = 0

    I've been using datareadProgress(int done, int total) for quite some time without problems on the same server.
    The last few days I've been making some changes and everything works perfectly but my total keeps ending up as 0
    When I read the documentation this happens if the total file size cannot be obtained but nothing changed on our server and if I download with my browser I see the total file size.
    Am I doing something wrong?

    I'm using a private slot downloadProgress(int done, int total) which only has 4 lines to animate a progressBar with some text.
    Using: connect(updateDownloader, SIGNAL(datareadProgress(int,int)), this, SLOT(downloadProgress(int,int)));

    The slot works as I can see the downloaded size increase, It just won't set that total.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: suddenly datareadProgress total = 0

    The server probably doesn't report content-length correctly. Sniff the headers and see for yourself.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Project suddenly doesn't compile
    By vieraci in forum Qt Programming
    Replies: 16
    Last Post: 7th June 2016, 07:12
  2. Replies: 0
    Last Post: 7th June 2012, 07:28
  3. connecting Qhttp::datareadprogress to progressbar
    By k.qasempour in forum Newbie
    Replies: 0
    Last Post: 6th June 2012, 12:02
  4. Suddenly getting 'undefined ref to 'WinMain@16'
    By Doug Broadwell in forum Qt Programming
    Replies: 8
    Last Post: 4th December 2008, 18:11
  5. hidden QListView column suddenly visible
    By edb in forum Qt Programming
    Replies: 10
    Last Post: 27th January 2006, 08:00

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.