Results 1 to 3 of 3

Thread: delete file with qt

  1. #1
    Join Date
    Nov 2012
    Posts
    21
    Thanks
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default delete file with qt

    Hi all,

    I am using Qt for desktop application on Linux. Application needs to delete files programmatically. But files should not be deleted permanently. It should be moved to trash. Any Qt API? Any solution?

    Best Regards,
    dpn.

  2. #2
    Join Date
    Dec 2011
    Posts
    36
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: delete file with qt

    You should move the file to /.local/share/Trash (depending on your distro)...

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: delete file with qt

    You could look into kde-runtime/kioslaves/trash

    Cheers,
    _

Similar Threads

  1. how to delete a file
    By athulms in forum Newbie
    Replies: 2
    Last Post: 13th October 2011, 01:19
  2. delete first row of data from .csv file?
    By babymonsta in forum Qt Programming
    Replies: 3
    Last Post: 20th May 2010, 03:39
  3. Delete character from file
    By kaszewczyk in forum Newbie
    Replies: 2
    Last Post: 11th March 2010, 18:07
  4. how to delete a file?
    By whoops.slo in forum Qt Programming
    Replies: 4
    Last Post: 22nd November 2006, 14:27
  5. How to delete File
    By rajesh in forum Qt Programming
    Replies: 1
    Last Post: 7th November 2006, 11:23

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.