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

Daniel Franke franke.daniel at gmail.com
Fri Apr 24 14:26:19 CEST 2009


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



More information about the Qt-interest-old mailing list