Results 1 to 2 of 2

Thread: delete a single file from a directory

  1. #1
    Join Date
    Dec 2008
    Location
    My spaceship needs repairs..so, I am stuck on beautiful earth
    Posts
    98
    Thanks
    25
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Post delete a single file from a directory

    Hi all,
    am working on Qt/S60.I am trying to implement the 'move' feature in a photo gallery application.When we 'move' a picture from a folder(source) to another folder(destination),the photo gets copied in the destination and automatically gets removed from the source folder.I have got the photo from the source to the destination folder but, how do I remove the photo in the source folder?
    Is there any command for that or do I have to code it manually?
    Thanks in advance for any suggestions.
    Last edited by rishiraj; 12th March 2009 at 06:46.
    If everything seems to be going well, you have obviously overlooked something.

  2. #2
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: delete a single file from a directory

    take a look at
    bool QFile::remove ( const QString & fileName ) [static]
    Qt Assistant -- rocks!
    please, use tags [CODE] & [/CODE].

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

    rishiraj (12th March 2009)

Similar Threads

  1. How to handle: QtCore/qconfig.h: No such file or directory ?
    By owen_263 in forum Installation and Deployment
    Replies: 2
    Last Post: 7th April 2008, 10:54
  2. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  3. QApplication: No such file or directory
    By Dolinski in forum Newbie
    Replies: 4
    Last Post: 24th May 2007, 06:13
  4. KDE/QWT doubt on debian sarge
    By hildebrand in forum KDE Forum
    Replies: 13
    Last Post: 25th April 2007, 07:13
  5. create file in another directory
    By raphaelf in forum Qt Programming
    Replies: 3
    Last Post: 16th February 2006, 11:04

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.