PDA

View Full Version : file operation



jay
5th May 2009, 09:03
Dear all,

I am working Qt4.3.4 in Windows platform.

Can any one tell me is it possible to restrict copy and paste of any file in windows using Qt ?

Is this is a platform dependent solution?

thanks in advance.

e8johan
5th May 2009, 14:58
I suppose that you can do it in a platform specific way - simple change the ownership of the file to someone else or so... but using Qt - I dont know any such method.

jay
7th May 2009, 11:27
Is the QFile::setPermissions (QFile::ReadOwner) method help me for setting only the file owner will copy/read any file?

Thanks in advance.

e8johan
7th May 2009, 12:19
Yes, it could be, but you might have to try it out on Windows. See the notes here: http://doc.trolltech.com/4.5/qfile.html#Permission-enum .