Hi All,
i know there is function to move a file (QFile::rename) in QT4,
is there similar function in QT3,
thanks.
Hi All,
i know there is function to move a file (QFile::rename) in QT4,
is there similar function in QT3,
thanks.
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.
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.
There is an example in the docs on how to use QDir::rename.
Bookmarks