[Qt-interest] QFileDialog, customized filters on the fly?

Torrin Jones tjones.job at gmail.com
Mon Apr 27 18:27:17 CEST 2009


How about having the user type "*x.jpg" (without the quotes) in the File
name: text box?

On Fri, Apr 24, 2009 at 5:26 AM, Daniel Franke <franke.daniel at gmail.com>wrote:

>
> Hi all.
>
> Sometimes the static filtering of files in QFileDialog, e.g. "JPEG
> (*.jpg)",
> is not enough. Is there a way to allow users to specify custom filters on
> the
> fly, e.g. "*x.jpg", to select all jpg-files whose basename ends with an
> 'x'?
>
> KDE does provide this functionality in KFileDialog, but I neither want to
> re-implement QFileDialog myself nor intrude kdelibs as a dependency. Are
> there simpler solutions for Qt-only apps?
>
> Thanks
>
>        Daniel
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090427/7de98987/attachment.html 


More information about the Qt-interest-old mailing list