PDA

View Full Version : Password on local file/folder



icebox25
11th April 2007, 13:16
Hello all! Is it possible to set password on a local file/folder? While trying to make a program for it, I read in the manual that you can do so using qurl but the explanation is not that satisfying. Anyone can help?

high_flyer
11th April 2007, 13:36
Is it possible to set password on a local file/folder?
I would say this is a file system issue, not something you can do above the file system.
That is, for regular files.
If you construct a special file format, that only your app can open and read, then sure, you can have any username password or other machanisms.

I read in the manual that you can do so using qurl but the explanation is not that satisfying. Anyone can help?
Can you post a link to that manual?
Or do you mean the Qt docs?

icebox25
13th April 2007, 15:48
Can you post a link to that manual?
Or do you mean the Qt docs?

Yes, I meant the Qt docs. Is there any other way aside from qurl?

high_flyer
13th April 2007, 16:33
As far as I understand this is not even possible with QUrl.
The setPassword() of QUrl just allows you to pass user login information to url(server) that supports it - it does not make the url be passowrd protected or be user aware.