Results 1 to 2 of 2

Thread: copy file

  1. #1
    Join Date
    Oct 2007
    Posts
    7
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Post copy file

    hi
    when i was trying to copy files from source directory to destination directory by using below code only file name only copying but file content is not copying.i dont know how to copy content also inside the file.
    if(!QFile::copy(m_strSourceDirectory+fileFind[tempVar],m_strDestDirectory+fileFind[tempVar]))
    {
    bAllCopied = false;
    }
    Last edited by deepa.selvaraj; 25th October 2007 at 07:40.

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: copy file

    Does QFile::exists() return true for the source file? And what about QFileInfo::isReadable()?
    J-P Nurmi

Similar Threads

  1. copy and run a .exe file in another system
    By sabeesh in forum Installation and Deployment
    Replies: 3
    Last Post: 22nd August 2007, 11:05
  2. Copy a file?
    By whitefurrows in forum Qt Programming
    Replies: 2
    Last Post: 27th July 2007, 22:05
  3. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  4. file copy in Qt 3.3.4 ?
    By npc in forum Newbie
    Replies: 6
    Last Post: 31st March 2006, 15:43
  5. Replies: 4
    Last Post: 24th February 2006, 11:30

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.