PDA

View Full Version : QFileDialog hidden files



blukske
21st August 2006, 14:16
Hi all,

I'm trying to construct a QFileDialog which shows hidden files by default. Is this possible? There is no reference whatsoever in the help section of QFileDialog wrt. hidden files :confused:

ball
22nd August 2006, 03:56
This topic already been discussed:

http://lists.trolltech.com/qt-interest/1998-12/msg00201.html

aMan
23rd August 2006, 19:51
it could be possible to get the source of the qfiledialog and fix the problem there (giving the class a new name and adding it to the project).

regards..
aman..

hvengel
8th March 2007, 03:11
You can do it like this:


QString fn;
QFileDialog fd;

fd.setShowHiddenFiles(TRUE);
fn = fd.getOpenFileName(Dir,
FileMask,
this,
"",
"Select a file");

I would like to be able to allow users to turn hidden files and directories on and off interactively in my file dialogs. Does anyone know how to do this in qt3?