[Qt-interest] restricting navigation in filedialog

sathya tej ragesathya at gmail.com
Wed Apr 15 07:04:51 CEST 2009


I am using linux (ubuntu 8.04) Qt 4.3.4

QFileDialog *fd = new QFileDialog(this);

connect(fd,SIGNAL(directoryEntered ( const QString &  ) ), this,SLOT(dirs(
const QString &)));



On Wed, Apr 15, 2009 at 10:28 AM, Scott Aron Bloom <Scott.Bloom at sabgroup.com
> wrote:

>  Show the code you are using for the creation of the dialog as well as the
> connection… and what OS since if you are on windows, the statics use the
> native dialogs by default which don’t do the call backs…
>
>
>
> You may need to set it to use the non-native dialogs
>
>
>
> Scott
>
>
>
> *From:* qt-interest-bounces at trolltech.com [mailto:
> qt-interest-bounces at trolltech.com] *On Behalf Of *sathya tej
> *Sent:* Tuesday, April 14, 2009 9:32 PM
> *To:* qt-interest at trolltech.com
> *Subject:* [Qt-interest] restricting navigation in filedialog
>
>
>
> hello all,
>
> I need to restrict the user to view only the contents of a sd card. He
> should not be able to view directories outside the sd card.
>
> I have tried using  the signal,
>
> void QFileDialog::directoryEntered ( const QString & );
>
> using which i could determine if its allowed path or not.
>
> But when i connect this signal to a slot it isnt entering the slot.
>
> I need some guidance on this matter.
>
> Please suggest me a better alternative to tackle this problem.
>
>
> Thank You,
>
> Sathya.
>
>
> --
> whatever happens happens for GOOD
>



-- 
whatever happens happens for GOOD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090415/9cc751ef/attachment.html 


More information about the Qt-interest-old mailing list