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. Copy and pasting files
Qt 6.11 is out! See what's new in the release blog

Copy and pasting files

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 3.7k 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.
  • A Offline
    A Offline
    ahmed kato
    wrote on last edited by
    #1

    i need to know how to make a program that copy and paste huge files like games and films...without open and read the write :D
    howa to windows call or somthin to copy files from driver D to E ...thx

    Ahmed Kato
    Computer & communications student
    Intern and MSP at Microsoft

    1 Reply Last reply
    0
    • L Offline
      L Offline
      LiamMaru
      wrote on last edited by
      #2

      Use "QFile":http://doc.qt.nokia.com/latest/qfile.html, and use the "copy":http://doc.qt.nokia.com/latest/qfile.html#copy method.

      1 Reply Last reply
      0
      • AlicemirrorA Offline
        AlicemirrorA Offline
        Alicemirror
        wrote on last edited by
        #3

        Sorry, but how do you think is possible to copy files without opening them and moving clusters from a drive to another? Coping implies data duplication...

        Enrico Miglino (aka Alicemirror)
        Balearic Dynamics
        Islas Baleares, Ibiza (Spain)
        www.balearicdynamics.com

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LiamMaru
          wrote on last edited by
          #4

          [quote author="Alicemirror" date="1317625090"]Sorry, but how do you think is possible to copy files without opening them and moving clusters from a drive to another? Coping implies data duplication...[/quote]

          Good question. I took his statement to mean 'without using primitive read/write operations'.

          1 Reply Last reply
          0
          • AlicemirrorA Offline
            AlicemirrorA Offline
            Alicemirror
            wrote on last edited by
            #5

            @LiamMaru: well, so your suggestion is correct.

            It is important that Qt (Dir, File, copy etc) will be used because this is the right way to have a homogeneous environment and a portable code.

            Enrico Miglino (aka Alicemirror)
            Balearic Dynamics
            Islas Baleares, Ibiza (Spain)
            www.balearicdynamics.com

            1 Reply Last reply
            0
            • A Offline
              A Offline
              ahmed kato
              wrote on last edited by
              #6

              @LiamMaru thx for your answer that's what i was looking for...i know i can open the file and readall then write them in new file but if the file is a 1GB size...it won't be nice :D

              Ahmed Kato
              Computer & communications student
              Intern and MSP at Microsoft

              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