Results 1 to 2 of 2

Thread: QFile Copy Video File problem

  1. #1
    Join Date
    Nov 2014
    Posts
    12
    Thanks
    4

    Default QFile Copy Video File problem

    Hi,
    I'm trying to use QFile::copy to copy a video file to another folder (*.mp4 video). It copies but the file seems corrupted, it wont open.
    I'm using

    Qt Code:
    1. QFile::copy(videoPath,copyPath);
    To copy to clipboard, switch view to plain text mode 
    where the videoPath is the original video path (C:/rec/untitled 01.mp4) and the copyPath is the new folder that already exists (C:/rec/copy/newname.mp4)

    Is there anything I should knew about copying Video Files with QFile?

    Thank you in advance.

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: QFile Copy Video File problem

    QFile::copy() doesn't care what type of file it is. What is the return code from QFile::copy()?

Similar Threads

  1. Replies: 1
    Last Post: 20th July 2013, 18:16
  2. QFile::copy copies only 3kb
    By camol in forum Qt Programming
    Replies: 36
    Last Post: 20th April 2011, 19:52
  3. 'QFile' Header File Problem
    By hasnatzaidi in forum Qt Programming
    Replies: 2
    Last Post: 11th June 2009, 21:40
  4. QTemporaryFile and Qfile::copy()
    By ChrisW67 in forum Newbie
    Replies: 2
    Last Post: 23rd April 2009, 23:32
  5. Problem : use QHttp get a file to QFile
    By fengtian.we in forum Qt Programming
    Replies: 9
    Last Post: 24th May 2007, 10:58

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.