Results 1 to 4 of 4

Thread: Password on local file/folder

  1. #1
    Join Date
    Apr 2007
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Password on local file/folder

    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?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Password on local file/folder

    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?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. #3
    Join Date
    Apr 2007
    Posts
    2
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: Password on local file/folder

    Quote Originally Posted by high_flyer View Post
    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?
    Last edited by icebox25; 13th April 2007 at 16:10.

  4. #4
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Password on local file/folder

    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.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

Similar Threads

  1. Portable Console Password Prompt
    By vermarajeev in forum General Programming
    Replies: 2
    Last Post: 2nd March 2007, 23:29
  2. About Password Protected Files:
    By vermarajeev in forum Qt Programming
    Replies: 7
    Last Post: 16th February 2007, 14:46
  3. Masking password
    By Lebowski in forum Qt Tools
    Replies: 3
    Last Post: 14th April 2006, 11:17

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.