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. How to modify the frequency of QNetworkReply::downloadProgress(..) signal ?
Forum Updated to NodeBB v4.3 + New Features

How to modify the frequency of QNetworkReply::downloadProgress(..) signal ?

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 158 Views
  • 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.
  • P Offline
    P Offline
    pingal
    wrote on last edited by pingal
    #1

    I've setup a progress to show downloaded info of a file(s)

    void HTTP::showProgress(qint64 bytesReceived, qint64 bytesTotal) {
        qDebug() << ((static_cast<double>(bytesReceived)/bytesTotal)*100) << "%";
    }
    

    I've not found in the documentation where I can adjust its frequency ( how frequently this signal should be emitted )

    1 Reply Last reply
    0
    • Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      It's hard-coded to 100ms in qnetworkreply.cpp.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3

      • Login

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