PDA

View Full Version : delete file with qt



dpn
9th January 2013, 12:52
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.

m3rlin
9th January 2013, 15:30
You should move the file to /.local/share/Trash (depending on your distro)...

anda_skoa
10th January 2013, 14:21
You could look into kde-runtime/kioslaves/trash

Cheers,
_