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. Copying a big file in a way that's interruptable and provides progress callbacks
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
3 Posts 3 Posters 1.1k 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.
  • V Offline
    V Offline
    Violet Giraffe
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      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

      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
      0
      • sierdzioS Offline
        sierdzioS Offline
        sierdzio
        Moderators
        wrote on last edited by
        #3

        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.

        (Z(:^

        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