Copying a big file in a way that's interruptable and provides progress callbacks

  • Is there any standard Qt class for copying a big file so that the process can be interrupted and I can receive progress updates? Or do I have to to implement the whole thing manually with Qfile::read and QFile::write?
    Perhaps, someone has already done this and there's an open source solution for this task?

  • Lifetime Qt Champion


    AFAIK there is nothing like this provided by Qt. It's quite a complicated matter to handle (network copy/external support/normal interruption/power outage etc...) Maybe there's something in KDE for that

    Hope it helps

  • Moderators

    I vaguely recall somebody trying to use QNetworkAccessManager to do that, but I don't remember the outcome. Handcrafting a custom solution seems to be a better idea.

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.