Results 1 to 4 of 4

Thread: Moving a file (QT3)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2007
    Posts
    8
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Moving a file (QT3)

    Hi All,

    i know there is function to move a file (QFile::rename) in QT4,
    is there similar function in QT3,
    thanks.

  2. #2
    Join Date
    Feb 2006
    Location
    Romania
    Posts
    2,744
    Thanks
    8
    Thanked 541 Times in 521 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Moving a file (QT3)

    Isn't it QFile::rename()?

    Edit: actually, it is not. You can use QDir::rename().
    Works for files too.
    Last edited by marcel; 21st December 2007 at 10:05.

  3. #3
    Join Date
    Jul 2007
    Posts
    8
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Moving a file (QT3)

    i`m confuse ,
    can you show me how to use QDir for moving files,
    currently my application scan a directory for files, then based on file size it will move to
    certain directory, eg. size range 1kb - 1mb, will moved to another directory.
    the last step i haven`t done is how to move these file.
    thanks.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Moving a file (QT3)

    There is an example in the docs on how to use QDir::rename.

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  2. Replies: 2
    Last Post: 8th November 2007, 20:15
  3. file renaming on windows
    By jdd81 in forum Qt Programming
    Replies: 9
    Last Post: 2nd October 2007, 19:41
  4. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  5. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 18:10

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.