Results 1 to 2 of 2

Thread: Moving a QFile

  1. #1
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Moving a QFile

    Hi,

    QFile has a .copy() and .remove() function.
    Does anyone know how to "move" a file without the overhead of copying and deleting?
    In some cases the files I'm moving are huge and a copy is a waste of time.
    I've tried to find a move function elsewhere with no luck.

    Qt 4.1.4 by the way.

    Thanks,

    Steve

  2. #2
    Join Date
    Mar 2006
    Posts
    140
    Thanks
    8
    Thanked 4 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Red face Re: Moving a QFile

    Sheeesh.

    .Rename()

    sorry

Similar Threads

  1. [Qt4] - Moving Widget...
    By IPFreely in forum Qt Programming
    Replies: 1
    Last Post: 13th June 2006, 09:32
  2. Append mode in QFile
    By Sarma in forum Qt Programming
    Replies: 1
    Last Post: 12th May 2006, 11:47
  3. QSettings vs (QFile + Qtextstream)
    By nupul in forum Newbie
    Replies: 5
    Last Post: 10th April 2006, 07:26
  4. moving QWidget and Mainform
    By mickey in forum Newbie
    Replies: 9
    Last Post: 6th April 2006, 17:54
  5. moving Qlistview items
    By :db:sStrong in forum Qt Programming
    Replies: 0
    Last Post: 21st February 2006, 12:25

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.