Results 1 to 3 of 3

Thread: QFile or QDir rename()

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2006
    Posts
    60
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11
    Thanks
    9
    Thanked 3 Times in 3 Posts

    Default QFile or QDir rename()

    When I use on of the rename functions and a file is open by an outside program, a new file is created with the new name instead of the rename function returning false as i had hoped. Is there a way around this? A way to check if the file is open elsewhere? I tried using QFile:: open() but that still opened and then corrupted my file.

    Qt 4.4.3 on Windows 2003.

    mAx
    Last edited by maxpower; 23rd January 2009 at 15:54.

Similar Threads

  1. QDir and QFile
    By sabeesh in forum Qt Programming
    Replies: 1
    Last Post: 27th September 2007, 13:43
  2. How to explicitely delete a QDir?
    By alan in forum Newbie
    Replies: 2
    Last Post: 13th February 2006, 17:48

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
  •  
Qt is a trademark of The Qt Company.