Results 1 to 2 of 2

Thread: Jail QFileDialog

  1. #1
    Join Date
    May 2009
    Location
    Gorontalo
    Posts
    200
    Thanks
    20
    Thanked 5 Times in 5 Posts
    Qt products
    Platforms
    Unix/X11 Windows

    Question Jail QFileDialog

    How to jail QFileDialog ? So if set /home/user/fakerootdir as setDirectory, the dir will be a root path like / in linux.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Jail QFileDialog

    There is no trivial way of doing this. I can imagine how to do it but it's kind of complicated and I'm not sure if it would work at all. Even if it would, it wouldn't work for the native file dialogs.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Need a help about QFileDialog
    By Achayan in forum Qt Programming
    Replies: 4
    Last Post: 27th August 2009, 09:12
  2. QFileDialog
    By merry in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2007, 13:41
  3. QFileDialog Mac / PC
    By hey in forum Qt Programming
    Replies: 3
    Last Post: 26th April 2007, 18:23
  4. QFileDialog and '~'
    By Levon Nikoghosyan in forum Qt Programming
    Replies: 4
    Last Post: 15th November 2006, 19:37
  5. [Qt4] need help with QFileDialog
    By patcito in forum Qt Programming
    Replies: 2
    Last Post: 7th January 2006, 18:00

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.