text: #include <qfiledialog.h>
  .
  The QFileDialog class enables a user to traverse their file system in order to select one or many files or a directory.
  The easiest way to create a QFileDialog is to use the static functions. On Windows, these static functions will call the native Windows file dialog and on Mac OS X, these static function will call the native Mac OS X file dialog.
  QString s = QFileDialog::getOpenFileName( "/home", "Images (*.png *.xpm *.jpg)", this, "open file dialog", "Choose a file" );
  In the above example, a modal QFileDialog is created using a static function. The startup directory is set to "/home". The file filter is set to "Images (*.png *.xpm *.jpg)". The parent of the file dialog is set to this and it is given the identification name - "open file dialog". The caption at the top of file dialog is set to "Choose a file". If you want to use multiple filters, separate each one with two semi-colons, e.g.
  "Images (*.png *.xpm *.jpg);;Text files (*.txt);;XML files (*.xml)"
  You can create your own QFileDialog without using the static functions. By calling setMode(), you can set what can be returned by the QFileDialog.
  QFileDialog* fd = new QFileDialog( this, "file dialog", TRUE ); fd->setMode( QFileDialog::AnyFile );
  In the above example, the mode of the file dialog is set to
  AnyFile, meaning that the user can select any file, or even specify a file that doesn't exist. This mode is useful for creating a "File Save As" file dialog. Use
  ExistingFile if the user must select an existing file or
  Directory if only a directory may be selected. (See the QFileDialog::Mode enum for the complete list of modes.)
  You can retrieve the dialog's mode with mode(). Use setFilter() to set the dialog's file filter, e.g.
  In the above example, the filter is set to "Images (*.png *.xpm .jpg)", this means that only files with the extension
  png,
  xpm or
  jpg will be shown in the QFileDialog. You can apply several filters by using setFilters() and add additional filters with addFilter(). Use setSelectedFilter() to select one of the filters you've given as the file dialog's default filter. Whenever the user changes the filter the filterSelected() signal is emitted.
  The file dialog has two view modes, QFileDialog::List which simply lists file and directory names and QFileDialog::Detail which displays additional information alongside each name, e.g. file size, modification date, etc. Set the mode with setViewMode().
  fd->setViewMode( QFileDialog::Detail );
  The last important function you will need to use when creating your own file dialog is selectedFile().
  QString fileName; if ( fd->exec() == QDialog::Accepted ) fileName = fd->selectedFile();
  In the above example, a modal file dialog is created and shown. If the user clicked OK, then the file they selected is put in
  fileName.
  If you are using the
  ExistingFiles mode then you will need to use selectedFiles() which will return the selected files in a QStringList.
  The dialog's working directory can be set with setDir(). The display of hidden files is controlled with setShowHiddenFiles(). The dialog can be forced to re-read the directory with rereadDir() and re-sort the directory with resortDir(). All the files in the current directory can be selected with selectAll().
  Definition at line 85 of file qfiledialog.h.