Results 1 to 3 of 3

Thread: Is there a move file to function ?

  1. #1
    Join Date
    Jun 2007
    Location
    Melun (French)
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Is there a move file to function ?

    Hy, I search since 1 hour and I don't find a function move file to so my question is : "Is there a move file to function ?"

    I know that with QFile you can copy and remove but for move you can't

    (sorry for my english, I'm 15 years old )

    Perhaps it's renamed, no ?
    SamSoft

    http://www.samsoft.ift.fr

    The knowledge is a universal right, you must release the source code

  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: Is there a move file to function ?

    There is no "move" when talking about the same filesystem. The notion has sense only across file systems.

    Anyway, the function you're looking is QFile::rename().
    Care must be taken when using it, mostly regarding permissions and destination existence.


    Regards

  3. The following user says thank you to marcel for this useful post:

    _SamSoft_ (4th June 2007)

  4. #3
    Join Date
    Jun 2007
    Location
    Melun (French)
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Talking Re: Is there a move file to function ?

    It's ok, I have resolved my problem (with QFile::rename())

    Regards
    SamSoft

    http://www.samsoft.ift.fr

    The knowledge is a universal right, you must release the source code

Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  2. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 06:13
  3. use qpsql
    By raphaelf in forum Installation and Deployment
    Replies: 34
    Last Post: 22nd August 2006, 12:52
  4. I got two problems when I used static compiled library of QT4
    By qintm in forum Installation and Deployment
    Replies: 8
    Last Post: 20th April 2006, 08:52
  5. use libs under qt4
    By raphaelf in forum Qt Programming
    Replies: 6
    Last Post: 27th February 2006, 17:59

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.