I'm creating a directory browser for browsing the file system. I'd like it to act much like other directory browsers you've used. However, I ran into a interesting problem.
How do you implement Cut?
Seems simple enough right? Copy the path to the clipboard, but what happens when the user pastes it to their desktop? Do I watch the QClipboard for changes and delete the file if I detect it was pasted? Will the desktop environment take care of it for me and all I have to do is watch for the file to disappear from the directory? That seems the most likely, but how do I tell the desktop environment that its a cut and not a copy?
Similarly, I'm curious how paste would work if the user 'Cut' a file on their desktop and pasted it into my widget. Any ideas?
Bookmarks