Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > 1dd17e0d683ef79b4bb6872bbf359d7f > files > 4534

qt4-doc-4.8.7-26.2.mga7.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- q3filedialog.cpp -->
  <title>Qt 4.8: Q3FileDialog Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li>Qt3SupportLight</li>
<li>Q3FileDialog</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#static-public-members">Static Public Members</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
<li class="level2"><a href="#creating-and-using-preview-widgets">Creating and using preview widgets</a></li>
</ul>
</div>
<h1 class="title">Q3FileDialog Class Reference</h1>
<!-- $$$Q3FileDialog-brief -->
<p>The Q3FileDialog class provides dialogs that allow users to select files or directories. <a href="#details">More...</a></p>
<!-- @@@Q3FileDialog -->
<pre class="cpp"> <span class="preprocessor">#include &lt;Q3FileDialog&gt;</span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qfiledialog">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="qdialog.html">QDialog</a>.</p>
<ul>
<li><a href="q3filedialog-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#Mode-enum">Mode</a></b> { AnyFile, ExistingFile, Directory, DirectoryOnly, ExistingFiles }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#PreviewMode-enum">PreviewMode</a></b> { NoPreview, Contents, Info }</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#ViewMode-enum">ViewMode</a></b> { List, Detail }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="q3filedialog.html#contentsPreview-prop">contentsPreview</a></b> : bool</li>
<li class="fn"><b><a href="q3filedialog.html#dirPath-prop">dirPath</a></b> : const QString</li>
<li class="fn"><b><a href="q3filedialog.html#infoPreview-prop">infoPreview</a></b> : bool</li>
<li class="fn"><b><a href="q3filedialog.html#mode-prop">mode</a></b> : Mode</li>
<li class="fn"><b><a href="q3filedialog.html#previewMode-prop">previewMode</a></b> : PreviewMode</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="q3filedialog.html#selectedFile-prop">selectedFile</a></b> : const QString</li>
<li class="fn"><b><a href="q3filedialog.html#selectedFiles-prop">selectedFiles</a></b> : const QStringList</li>
<li class="fn"><b><a href="q3filedialog.html#selectedFilter-prop">selectedFilter</a></b> : const QString</li>
<li class="fn"><b><a href="q3filedialog.html#showHiddenFiles-prop">showHiddenFiles</a></b> : bool</li>
<li class="fn"><b><a href="q3filedialog.html#viewMode-prop">viewMode</a></b> : ViewMode</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">2 properties inherited from <a href="qdialog.html#properties">QDialog</a></li>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#Q3FileDialog">Q3FileDialog</a></b> ( const QString &amp; <i>dirName</i>, const QString &amp; <i>filter</i> = QString(), QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, bool <i>modal</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#Q3FileDialog-2">Q3FileDialog</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, bool <i>modal</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#dtor.Q3FileDialog">~Q3FileDialog</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#addFilter">addFilter</a></b> ( const QString &amp; <i>filter</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QDir * </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#dir">dir</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#dirPath-prop">dirPath</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#contentsPreview-prop">isContentsPreviewEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#infoPreview-prop">isInfoPreviewEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Mode </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#mode-prop">mode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> PreviewMode </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#previewMode-prop">previewMode</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#rereadDir">rereadDir</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#resortDir">resortDir</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#selectAll">selectAll</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#selectedFile-prop">selectedFile</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#selectedFiles-prop">selectedFiles</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#selectedFilter-prop">selectedFilter</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setContentsPreview">setContentsPreview</a></b> ( QWidget * <i>w</i>, Q3FilePreview * <i>preview</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#contentsPreview-prop">setContentsPreviewEnabled</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setDir">setDir</a></b> ( const QDir &amp; <i>dir</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setInfoPreview">setInfoPreview</a></b> ( QWidget * <i>w</i>, Q3FilePreview * <i>preview</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#infoPreview-prop">setInfoPreviewEnabled</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#mode-prop">setMode</a></b> ( Mode )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#previewMode-prop">setPreviewMode</a></b> ( PreviewMode <i>m</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setSelectedFilter">setSelectedFilter</a></b> ( const QString &amp; <i>mask</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setSelectedFilter-2">setSelectedFilter</a></b> ( int <i>n</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setSelection">setSelection</a></b> ( const QString &amp; <i>filename</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#showHiddenFiles-prop">setShowHiddenFiles</a></b> ( bool <i>s</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#viewMode-prop">setViewMode</a></b> ( ViewMode <i>m</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#showHiddenFiles-prop">showHiddenFiles</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3Url </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#url">url</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> ViewMode </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#viewMode-prop">viewMode</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#eventFilter">eventFilter</a></b> ( QObject * <i>o</i>, QEvent * <i>e</i> )</td></tr>
</table>
<ul>
<li class="fn">8 public functions inherited from <a href="qdialog.html#public-functions">QDialog</a></li>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#done">done</a></b> ( int <i>i</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setDir-2">setDir</a></b> ( const QString &amp; <i>pathstr</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setFilter">setFilter</a></b> ( const QString &amp; <i>newFilter</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setFilters">setFilters</a></b> ( const QString &amp; <i>filters</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setFilters-2">setFilters</a></b> ( const char ** <i>types</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setFilters-3">setFilters</a></b> ( const QStringList &amp; <i>types</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setUrl">setUrl</a></b> ( const Q3UrlOperator &amp; <i>url</i> )</td></tr>
</table>
<ul>
<li class="fn">5 public slots inherited from <a href="qdialog.html#public-slots">QDialog</a></li>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#dirEntered">dirEntered</a></b> ( const QString &amp; <i>directory</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#fileHighlighted">fileHighlighted</a></b> ( const QString &amp; <i>file</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#fileSelected">fileSelected</a></b> ( const QString &amp; <i>file</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#filesSelected">filesSelected</a></b> ( const QStringList &amp; <i>files</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#filterSelected">filterSelected</a></b> ( const QString &amp; <i>filter</i> )</td></tr>
</table>
<ul>
<li class="fn">3 signals inherited from <a href="qdialog.html#signals">QDialog</a></li>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="static-public-members"></a>
<h2>Static Public Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#getExistingDirectory">getExistingDirectory</a></b> ( const QString &amp; <i>dir</i> = QString(), QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, const QString &amp; <i>caption</i> = QString(), bool <i>dirOnly</i> = true, bool <i>resolveSymlinks</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#getOpenFileName">getOpenFileName</a></b> ( const QString &amp; <i>startWith</i> = QString(), const QString &amp; <i>filter</i> = QString(), QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, const QString &amp; <i>caption</i> = QString(), QString * <i>selectedFilter</i> = 0, bool <i>resolveSymlinks</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStringList </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#getOpenFileNames">getOpenFileNames</a></b> ( const QString &amp; <i>filter</i> = QString(), const QString &amp; <i>dir</i> = QString(), QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, const QString &amp; <i>caption</i> = QString(), QString * <i>selectedFilter</i> = 0, bool <i>resolveSymlinks</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QString </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#getSaveFileName">getSaveFileName</a></b> ( const QString &amp; <i>startWith</i> = QString(), const QString &amp; <i>filter</i> = QString(), QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, const QString &amp; <i>caption</i> = QString(), QString * <i>selectedFilter</i> = 0, bool <i>resolveSymlinks</i> = true )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3FileIconProvider * </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#iconProvider">iconProvider</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#setIconProvider">setIconProvider</a></b> ( Q3FileIconProvider * <i>provider</i> )</td></tr>
</table>
<ul>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
</ul>
<a name="protected-functions"></a>
<h2>Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#addLeftWidget">addLeftWidget</a></b> ( QWidget * <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#addRightWidget">addRightWidget</a></b> ( QWidget * <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#addToolButton">addToolButton</a></b> ( QAbstractButton * <i>b</i>, bool <i>separator</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#addWidgets">addWidgets</a></b> ( QLabel * <i>l</i>, QWidget * <i>w</i>, QPushButton * <i>b</i> )</td></tr>
</table>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#keyPressEvent">keyPressEvent</a></b> ( QKeyEvent * <i>ke</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3filedialog.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>e</i> )</td></tr>
</table>
<ul>
<li class="fn">7 protected functions inherited from <a href="qdialog.html#protected-functions">QDialog</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$Q3FileDialog-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3FileDialog class provides dialogs that allow users to select files or directories.</p>
<p>The Q3FileDialog class enables a user to traverse their file system in order to select one or many files or a directory.</p>
<p>The easiest way to create a Q3FileDialog 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.</p>
<pre class="cpp"> <span class="type"><a href="qstring.html">QString</a></span> s <span class="operator">=</span> <span class="type">Q3FileDialog</span><span class="operator">::</span><a href="q3filedialog.html#getOpenFileName">getOpenFileName</a>(
                 <span class="string">&quot;/home&quot;</span><span class="operator">,</span>
                 <span class="string">&quot;Images (*.png *.xpm *.jpg)&quot;</span><span class="operator">,</span>
                 <span class="keyword">this</span><span class="operator">,</span>
                 <span class="string">&quot;open file dialog&quot;</span><span class="operator">,</span>
                 <span class="string">&quot;Choose a file&quot;</span>);</pre>
<p>In the above example, a modal Q3FileDialog is created using a static function. The startup directory is set to &quot;/home&quot;. The file filter is set to &quot;Images (*.png *.xpm *.jpg)&quot;. The parent of the file dialog is set to <i>this</i> and it is given the identification name - &quot;open file dialog&quot;. The caption at the top of file dialog is set to &quot;Choose a file&quot;. If you want to use multiple filters, separate each one with <i>two</i> semicolons, e.g&#x2e;</p>
<pre class="cpp"> <span class="string">&quot;Images (*.png *.xpm *.jpg);;Text files (*.txt);;XML files (*.xml)&quot;</span></pre>
<p>You can create your own Q3FileDialog without using the static functions. By calling <a href="q3filedialog.html#mode-prop">setMode</a>(), you can set what can be returned by the Q3FileDialog.</p>
<pre class="cpp"> <span class="type">Q3FileDialog</span><span class="operator">*</span> fd <span class="operator">=</span> <span class="keyword">new</span> <span class="type">Q3FileDialog</span>(<span class="keyword">this</span><span class="operator">,</span> <span class="string">&quot;file dialog&quot;</span><span class="operator">,</span> <span class="keyword">true</span>);
 fd<span class="operator">-</span><span class="operator">&gt;</span><a href="q3filedialog.html#mode-prop">setMode</a>(<span class="type">Q3FileDialog</span><span class="operator">::</span>AnyFile);</pre>
<p>In the above example, the mode of the file dialog is set to <a href="q3filedialog.html#Mode-enum">AnyFile</a>, meaning that the user can select any file, or even specify a file that doesn't exist. This mode is useful for creating a &quot;File Save As&quot; file dialog. Use <a href="q3filedialog.html#Mode-enum">ExistingFile</a> if the user must select an existing file or <a href="q3filedialog.html#Mode-enum">Directory</a> if only a directory may be selected. (See the <a href="q3filedialog.html#Mode-enum">Q3FileDialog::Mode</a> enum for the complete list of modes.)</p>
<p>You can retrieve the dialog's mode with <a href="q3filedialog.html#mode-prop">mode</a>(). Use <a href="q3filedialog.html#setFilter">setFilter</a>() to set the dialog's file filter, e.g&#x2e;</p>
<pre class="cpp"> fd<span class="operator">-</span><span class="operator">&gt;</span><a href="q3filedialog.html#setFilter">setFilter</a>(<span class="string">&quot;Images (*.png *.xpm *.jpg)&quot;</span>);</pre>
<p>In the above example, the filter is set to &quot;Images (*.png *.xpm *.jpg)&quot;, this means that only files with the extension <tt>png</tt>, <tt>xpm</tt> or <tt>jpg</tt> will be shown in the Q3FileDialog. You can apply several filters by using <a href="q3filedialog.html#setFilters">setFilters</a>() and add additional filters with <a href="q3filedialog.html#addFilter">addFilter</a>(). Use <a href="q3filedialog.html#setSelectedFilter">setSelectedFilter</a>() to select one of the filters you've given as the file dialog's default filter. Whenever the user changes the filter the <a href="q3filedialog.html#filterSelected">filterSelected</a>() signal is emitted.</p>
<p>The file dialog has two view modes, <a href="q3filedialog.html#ViewMode-enum">Q3FileDialog::List</a> which simply lists file and directory names and <a href="q3filedialog.html#ViewMode-enum">Q3FileDialog::Detail</a> which displays additional information alongside each name, e.g&#x2e; file size, modification date, etc. Set the mode with <a href="q3filedialog.html#viewMode-prop">setViewMode</a>().</p>
<pre class="cpp"> fd<span class="operator">-</span><span class="operator">&gt;</span><a href="q3filedialog.html#viewMode-prop">setViewMode</a>(<span class="type">Q3FileDialog</span><span class="operator">::</span>Detail);</pre>
<p>The last important function you will need to use when creating your own file dialog is <a href="q3filedialog.html#selectedFile-prop">selectedFile</a>().</p>
<pre class="cpp"> <span class="type"><a href="qstring.html">QString</a></span> fileName;
 <span class="keyword">if</span> (fd<span class="operator">-</span><span class="operator">&gt;</span>exec() <span class="operator">=</span><span class="operator">=</span> <span class="type"><a href="qdialog.html">QDialog</a></span><span class="operator">::</span>Accepted)
     fileName <span class="operator">=</span> fd<span class="operator">-</span><span class="operator">&gt;</span><a href="q3filedialog.html#selectedFile-prop">selectedFile</a>();</pre>
<p>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 <tt>fileName</tt>.</p>
<p>If you are using the <a href="q3filedialog.html#Mode-enum">ExistingFiles</a> mode then you will need to use <a href="q3filedialog.html#selectedFiles-prop">selectedFiles</a>() which will return the selected files in a <a href="qstringlist.html">QStringList</a>.</p>
<p>The dialog's working directory can be set with <a href="q3filedialog.html#setDir">setDir</a>(). The display of hidden files is controlled with <a href="q3filedialog.html#showHiddenFiles-prop">setShowHiddenFiles</a>(). The dialog can be forced to re-read the directory with <a href="q3filedialog.html#rereadDir">rereadDir</a>() and re-sort the directory with <a href="q3filedialog.html#resortDir">resortDir</a>(). All the files in the current directory can be selected with <a href="q3filedialog.html#selectAll">selectAll</a>().</p>
<a name="creating-and-using-preview-widgets"></a>
<h3>Creating and using preview widgets</h3>
<p>There are two kinds of preview widgets that can be used with Q3FileDialogs: <i>content</i> preview widgets and <i>information</i> preview widgets. They are created and used in the same way except that the function names differ, e.g&#x2e; <a href="q3filedialog.html#setContentsPreview">setContentsPreview</a>() and <a href="q3filedialog.html#setInfoPreview">setInfoPreview</a>().</p>
<p>A preview widget is a widget that is placed inside a Q3FileDialog so that the user can see either the contents of the file, or information about the file.</p>
<pre class="cpp"> <span class="keyword">class</span> Preview : <span class="keyword">public</span> <span class="type"><a href="qlabel.html">QLabel</a></span><span class="operator">,</span> <span class="keyword">public</span> <span class="type"><a href="q3filepreview.html">Q3FilePreview</a></span>
 {
 <span class="keyword">public</span>:
     Preview(<span class="type"><a href="qwidget.html">QWidget</a></span> <span class="operator">*</span>parent<span class="operator">=</span><span class="number">0</span>) : <span class="type"><a href="qlabel.html">QLabel</a></span>(parent) {}

     <span class="type">void</span> previewUrl(<span class="keyword">const</span> <span class="type"><a href="q3url.html">Q3Url</a></span> <span class="operator">&amp;</span>u)
     {
         <span class="type"><a href="qstring.html">QString</a></span> path <span class="operator">=</span> u<span class="operator">.</span>path();
         <span class="type"><a href="qpixmap.html">QPixmap</a></span> pix(path);
         <span class="keyword">if</span> (pix<span class="operator">.</span>isNull())
             setText(<span class="string">&quot;This is not a pixmap&quot;</span>);
         <span class="keyword">else</span>
             setPixmap(pix);
     }
 };</pre>
<p>In the above snippet, we create a preview widget which inherits from <a href="qlabel.html">QLabel</a> and <a href="q3filepreview.html">Q3FilePreview</a>. File preview widgets <i>must</i> inherit from <a href="q3filepreview.html">Q3FilePreview</a>.</p>
<p>Inside the class we reimplement <a href="q3filepreview.html#previewUrl">Q3FilePreview::previewUrl</a>(), this is where we determine what happens when a file is selected. In the above example we only show a preview of the file if it is a valid pixmap. Here's how to make a file dialog use a preview widget:</p>
<pre class="cpp"> Preview<span class="operator">*</span> p <span class="operator">=</span> <span class="keyword">new</span> Preview;

 <span class="type">Q3FileDialog</span><span class="operator">*</span> fd <span class="operator">=</span> <span class="keyword">new</span> <span class="type">Q3FileDialog</span>(<span class="keyword">this</span>);
 fd<span class="operator">-</span><span class="operator">&gt;</span><a href="q3filedialog.html#contentsPreview-prop">setContentsPreviewEnabled</a>(<span class="keyword">true</span>);
 fd<span class="operator">-</span><span class="operator">&gt;</span><a href="q3filedialog.html#setContentsPreview">setContentsPreview</a>(p<span class="operator">,</span> p);
 fd<span class="operator">-</span><span class="operator">&gt;</span><a href="q3filedialog.html#previewMode-prop">setPreviewMode</a>(<span class="type">Q3FileDialog</span><span class="operator">::</span>Contents);
 fd<span class="operator">-</span><span class="operator">&gt;</span><a href="qwidget.html#show">show</a>();</pre>
<p>The first line creates an instance of our preview widget. We then create our file dialog and call setContentsPreviewEnabled(true), this tell the file dialog to preview the contents of the currently selected file. We then call <a href="q3filedialog.html#setContentsPreview">setContentsPreview</a>() -- note that we pass the same preview widget twice. Finally, before showing the file dialog, we call <a href="q3filedialog.html#previewMode-prop">setPreviewMode</a>() setting the mode to <i>Contents</i> which will show the contents preview of the file that the user has selected.</p>
<p>If you create another preview widget that is used for displaying information about a file, create it in the same way as the contents preview widget and call <a href="q3filedialog.html#infoPreview-prop">setInfoPreviewEnabled</a>(), and <a href="q3filedialog.html#setInfoPreview">setInfoPreview</a>(). Then the user will be able to switch between the two preview modes.</p>
<p>For more information about creating a <a href="q3filepreview.html">Q3FilePreview</a> widget see <a href="q3filepreview.html">Q3FilePreview</a>.</p>
</div>
<!-- @@@Q3FileDialog -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$Mode$$$AnyFile$$$ExistingFile$$$Directory$$$ExistingFiles$$$DirectoryOnly -->
<h3 class="fn"><a name="Mode-enum"></a>enum Q3FileDialog::<span class="name">Mode</span></h3>
<p>This enum is used to indicate what the user may select in the file dialog, i.e&#x2e; what the dialog will return if the user clicks OK.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3FileDialog::AnyFile</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The name of a file, whether it exists or not.</td></tr>
<tr><td class="topAlign"><tt>Q3FileDialog::ExistingFile</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The name of a single existing file.</td></tr>
<tr><td class="topAlign"><tt>Q3FileDialog::Directory</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The name of a directory. Both files and directories are displayed.</td></tr>
<tr><td class="topAlign"><tt>Q3FileDialog::DirectoryOnly</tt></td><td class="topAlign"><tt>4</tt></td><td class="topAlign">The name of a directory. The file dialog will only display directories.</td></tr>
<tr><td class="topAlign"><tt>Q3FileDialog::ExistingFiles</tt></td><td class="topAlign"><tt>3</tt></td><td class="topAlign">The names of zero or more existing files.</td></tr>
</table>
<p>See <a href="q3filedialog.html#mode-prop">setMode</a>().</p>
<!-- @@@Mode -->
<!-- $$$PreviewMode$$$NoPreview$$$Contents$$$Info -->
<h3 class="fn"><a name="PreviewMode-enum"></a>enum Q3FileDialog::<span class="name">PreviewMode</span></h3>
<p>This enum describes the preview mode of the file dialog.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3FileDialog::NoPreview</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">No preview is shown at all.</td></tr>
<tr><td class="topAlign"><tt>Q3FileDialog::Contents</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Show a preview of the contents of the current file using the contents preview widget.</td></tr>
<tr><td class="topAlign"><tt>Q3FileDialog::Info</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">Show information about the current file using the info preview widget.</td></tr>
</table>
<p>See <a href="q3filedialog.html#previewMode-prop">setPreviewMode</a>(), <a href="q3filedialog.html#setContentsPreview">setContentsPreview</a>() and <a href="q3filedialog.html#setInfoPreview">setInfoPreview</a>().</p>
<!-- @@@PreviewMode -->
<!-- $$$ViewMode$$$Detail$$$List -->
<h3 class="fn"><a name="ViewMode-enum"></a>enum Q3FileDialog::<span class="name">ViewMode</span></h3>
<p>This enum describes the view mode of the file dialog, i.e&#x2e; what information about each file will be displayed.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3FileDialog::List</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">Display file and directory names with icons.</td></tr>
<tr><td class="topAlign"><tt>Q3FileDialog::Detail</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">Display file and directory names with icons plus additional information, such as file size and modification date.</td></tr>
</table>
<p>See <a href="q3filedialog.html#viewMode-prop">setViewMode</a>().</p>
<!-- @@@ViewMode -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$contentsPreview-prop$$$isContentsPreviewEnabled$$$setContentsPreviewEnabledbool -->
<h3 class="fn"><a name="contentsPreview-prop"></a><span class="name">contentsPreview</span> : <span class="type">bool</span></h3>
<p>This property holds whether the file dialog can provide a contents preview of the currently selected file.</p>
<p>The default is false.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isContentsPreviewEnabled</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setContentsPreviewEnabled</b></span> ( bool )</td></tr>
</table>
<p><b>See also </b><a href="q3filedialog.html#setContentsPreview">setContentsPreview</a>() and <a href="q3filedialog.html#infoPreview-prop">setInfoPreviewEnabled</a>().</p>
<!-- @@@contentsPreview -->
<!-- $$$dirPath-prop$$$dirPath -->
<h3 class="fn"><a name="dirPath-prop"></a><span class="name">dirPath</span> : const <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the file dialog's working directory.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>dirPath</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="q3filedialog.html#dir">dir</a>() and <a href="q3filedialog.html#setDir">setDir</a>().</p>
<!-- @@@dirPath -->
<!-- $$$infoPreview-prop$$$isInfoPreviewEnabled$$$setInfoPreviewEnabledbool -->
<h3 class="fn"><a name="infoPreview-prop"></a><span class="name">infoPreview</span> : <span class="type">bool</span></h3>
<p>This property holds whether the file dialog can provide preview information about the currently selected file.</p>
<p>The default is false.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>isInfoPreviewEnabled</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setInfoPreviewEnabled</b></span> ( bool )</td></tr>
</table>
<!-- @@@infoPreview -->
<!-- $$$mode-prop$$$mode$$$setModeMode -->
<h3 class="fn"><a name="mode-prop"></a><span class="name">mode</span> : <span class="type"><a href="q3filedialog.html#Mode-enum">Mode</a></span></h3>
<p>This property holds the file dialog's mode.</p>
<p>The default mode is <a href="q3filedialog.html#Mode-enum">ExistingFile</a>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Mode </td><td class="memItemRight bottomAlign"><span class="name"><b>mode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMode</b></span> ( Mode )</td></tr>
</table>
<!-- @@@mode -->
<!-- $$$previewMode-prop$$$previewMode$$$setPreviewModePreviewMode -->
<h3 class="fn"><a name="previewMode-prop"></a><span class="name">previewMode</span> : <span class="type"><a href="q3filedialog.html#PreviewMode-enum">PreviewMode</a></span></h3>
<p>This property holds the preview mode for the file dialog.</p>
<p>If you set the mode to be a mode other than <i>NoPreview</i>, you must use <a href="q3filedialog.html#setInfoPreview">setInfoPreview</a>() or <a href="q3filedialog.html#setContentsPreview">setContentsPreview</a>() to set the dialog's preview widget to your preview widget and enable the preview widget(s) with <a href="q3filedialog.html#infoPreview-prop">setInfoPreviewEnabled</a>() or <a href="q3filedialog.html#contentsPreview-prop">setContentsPreviewEnabled</a>().</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> PreviewMode </td><td class="memItemRight bottomAlign"><span class="name"><b>previewMode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setPreviewMode</b></span> ( PreviewMode <i>m</i> )</td></tr>
</table>
<p><b>See also </b><a href="q3filedialog.html#infoPreview-prop">infoPreview</a>, <a href="q3filedialog.html#contentsPreview-prop">contentsPreview</a>, and <a href="q3filedialog.html#viewMode-prop">viewMode</a>.</p>
<!-- @@@previewMode -->
<!-- $$$selectedFile-prop$$$selectedFile -->
<h3 class="fn"><a name="selectedFile-prop"></a><span class="name">selectedFile</span> : const <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the name of the selected file.</p>
<p>If a file was selected selectedFile contains the file's name including its absolute path; otherwise selectedFile is empty.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>selectedFile</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qstring.html#isEmpty">QString::isEmpty</a>(), <a href="q3filedialog.html#selectedFiles-prop">selectedFiles</a>, and <a href="q3filedialog.html#selectedFilter-prop">selectedFilter</a>.</p>
<!-- @@@selectedFile -->
<!-- $$$selectedFiles-prop$$$selectedFiles -->
<h3 class="fn"><a name="selectedFiles-prop"></a><span class="name">selectedFiles</span> : const <span class="type"><a href="qstringlist.html">QStringList</a></span></h3>
<p>This property holds the list of selected files.</p>
<p>If one or more files are selected, selectedFiles contains their names including their absolute paths. If no files are selected or the mode isn't <a href="q3filedialog.html#Mode-enum">ExistingFiles</a> selectedFiles is an empty list.</p>
<p>It is more convenient to use <a href="q3filedialog.html#selectedFile-prop">selectedFile</a>() if the mode is <a href="q3filedialog.html#Mode-enum">ExistingFile</a>, <tt>Directory</tt> or <tt>DirectoryOnly</tt>.</p>
<p>Note that if you want to iterate over the list, you should iterate over a copy, e.g&#x2e;</p>
<pre class="cpp"> <span class="type"><a href="qstringlist.html">QStringList</a></span> list <span class="operator">=</span> myFileDialog<span class="operator">.</span>selectedFiles();
 <span class="type"><a href="qstringlist.html">QStringList</a></span><span class="operator">::</span>Iterator it <span class="operator">=</span> list<span class="operator">.</span>begin();
 <span class="keyword">while</span>(it <span class="operator">!</span><span class="operator">=</span> list<span class="operator">.</span>end()) {
     myProcessing(<span class="operator">*</span>it);
     <span class="operator">+</span><span class="operator">+</span>it;
 }</pre>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QStringList </td><td class="memItemRight bottomAlign"><span class="name"><b>selectedFiles</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="q3filedialog.html#selectedFile-prop">selectedFile</a>, <a href="q3filedialog.html#selectedFilter-prop">selectedFilter</a>, and <a href="qlist.html#isEmpty">QList::isEmpty</a>().</p>
<!-- @@@selectedFiles -->
<!-- $$$selectedFilter-prop$$$selectedFilter -->
<h3 class="fn"><a name="selectedFilter-prop"></a><span class="name">selectedFilter</span> : const <span class="type"><a href="qstring.html">QString</a></span></h3>
<p>This property holds the filter which the user has selected in the file dialog.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QString </td><td class="memItemRight bottomAlign"><span class="name"><b>selectedFilter</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="q3filedialog.html#filterSelected">filterSelected</a>(), <a href="q3filedialog.html#selectedFiles-prop">selectedFiles</a>, and <a href="q3filedialog.html#selectedFile-prop">selectedFile</a>.</p>
<!-- @@@selectedFilter -->
<!-- $$$showHiddenFiles-prop$$$showHiddenFiles$$$setShowHiddenFilesbool -->
<h3 class="fn"><a name="showHiddenFiles-prop"></a><span class="name">showHiddenFiles</span> : <span class="type">bool</span></h3>
<p>This property holds whether hidden files are shown in the file dialog.</p>
<p>The default is false, i.e&#x2e; don't show hidden files.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>showHiddenFiles</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setShowHiddenFiles</b></span> ( bool <i>s</i> )</td></tr>
</table>
<!-- @@@showHiddenFiles -->
<!-- $$$viewMode-prop$$$viewMode$$$setViewModeViewMode -->
<h3 class="fn"><a name="viewMode-prop"></a><span class="name">viewMode</span> : <span class="type"><a href="q3filedialog.html#ViewMode-enum">ViewMode</a></span></h3>
<p>This property holds the file dialog's view mode.</p>
<p>If you set the view mode to be <i>Detail</i> (the default), then you will see the file's details, such as the size of the file and the date the file was last modified in addition to the file's name.</p>
<p>If you set the view mode to be <i>List</i>, then you will just see a list of the files and folders.</p>
<p>See <a href="q3filedialog.html#ViewMode-enum">Q3FileDialog::ViewMode</a></p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> ViewMode </td><td class="memItemRight bottomAlign"><span class="name"><b>viewMode</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setViewMode</b></span> ( ViewMode <i>m</i> )</td></tr>
</table>
<!-- @@@viewMode -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3FileDialog[overload1]$$$Q3FileDialogconstQString&constQString&QWidget*constchar*bool -->
<h3 class="fn"><a name="Q3FileDialog"></a>Q3FileDialog::<span class="name">Q3FileDialog</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>dirName</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>filter</i> = QString(), <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0, <span class="type">bool</span> <i>modal</i> = false )</h3>
<p>Constructs a file dialog called <i>name</i> with the parent, <i>parent</i>. If <i>modal</i> is true then the file dialog is modal; otherwise it is modeless.</p>
<p>If <i>dirName</i> is specified then it will be used as the dialog's working directory, i.e&#x2e; it will be the directory that is shown when the dialog appears. If <i>filter</i> is specified it will be used as the dialog's file filter.</p>
<!-- @@@Q3FileDialog -->
<!-- $$$Q3FileDialog$$$Q3FileDialogQWidget*constchar*bool -->
<h3 class="fn"><a name="Q3FileDialog-2"></a>Q3FileDialog::<span class="name">Q3FileDialog</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0, <span class="type">bool</span> <i>modal</i> = false )</h3>
<p>Constructs a file dialog called <i>name</i>, with the parent, <i>parent</i>. If <i>modal</i> is true then the file dialog is modal; otherwise it is modeless.</p>
<!-- @@@Q3FileDialog -->
<!-- $$$~Q3FileDialog[overload1]$$$~Q3FileDialog -->
<h3 class="fn"><a name="dtor.Q3FileDialog"></a>Q3FileDialog::<span class="name">~Q3FileDialog</span> ()</h3>
<p>Destroys the file dialog.</p>
<!-- @@@~Q3FileDialog -->
<!-- $$$addFilter[overload1]$$$addFilterconstQString& -->
<h3 class="fn"><a name="addFilter"></a><span class="type">void</span> Q3FileDialog::<span class="name">addFilter</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>filter</i> )</h3>
<p>Adds the filter <i>filter</i> to the list of filters and makes it the current filter.</p>
<pre class="cpp"> <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span><span class="operator">*</span> fd <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span>(<span class="keyword">this</span>);
 fd<span class="operator">-</span><span class="operator">&gt;</span>addFilter(<span class="string">&quot;Images (*.png *.jpg *.xpm)&quot;</span>);
 fd<span class="operator">-</span><span class="operator">&gt;</span><a href="qwidget.html#show">show</a>();</pre>
<p>In the above example, a file dialog is created, and the file filter &quot;Images (*.png *.jpg *.xpm)&quot; is added and is set as the current filter. The original filter, &quot;All Files (*)&quot;, is still available.</p>
<p><b>See also </b><a href="q3filedialog.html#setFilter">setFilter</a>() and <a href="q3filedialog.html#setFilters">setFilters</a>().</p>
<!-- @@@addFilter -->
<!-- $$$addLeftWidget[overload1]$$$addLeftWidgetQWidget* -->
<h3 class="fn"><a name="addLeftWidget"></a><span class="type">void</span> Q3FileDialog::<span class="name">addLeftWidget</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i> )<tt> [protected]</tt></h3>
<p>Adds the widget <i>w</i> to the left-hand side of the file dialog.</p>
<p><b>See also </b><a href="q3filedialog.html#addRightWidget">addRightWidget</a>(), <a href="q3filedialog.html#addWidgets">addWidgets</a>(), and <a href="q3filedialog.html#addToolButton">addToolButton</a>().</p>
<!-- @@@addLeftWidget -->
<!-- $$$addRightWidget[overload1]$$$addRightWidgetQWidget* -->
<h3 class="fn"><a name="addRightWidget"></a><span class="type">void</span> Q3FileDialog::<span class="name">addRightWidget</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i> )<tt> [protected]</tt></h3>
<p>Adds the widget <i>w</i> to the right-hand side of the file dialog.</p>
<p><b>See also </b><a href="q3filedialog.html#addLeftWidget">addLeftWidget</a>(), <a href="q3filedialog.html#addWidgets">addWidgets</a>(), and <a href="q3filedialog.html#addToolButton">addToolButton</a>().</p>
<!-- @@@addRightWidget -->
<!-- $$$addToolButton[overload1]$$$addToolButtonQAbstractButton*bool -->
<h3 class="fn"><a name="addToolButton"></a><span class="type">void</span> Q3FileDialog::<span class="name">addToolButton</span> ( <span class="type"><a href="qabstractbutton.html">QAbstractButton</a></span> * <i>b</i>, <span class="type">bool</span> <i>separator</i> = false )<tt> [protected]</tt></h3>
<p>Adds the tool button <i>b</i> to the row of tool buttons at the top of the file dialog. The button is appended to the right of this row. If <i>separator</i> is true, a small space is inserted between the last button of the row and the new button <i>b</i>.</p>
<p><b>See also </b><a href="q3filedialog.html#addWidgets">addWidgets</a>(), <a href="q3filedialog.html#addLeftWidget">addLeftWidget</a>(), and <a href="q3filedialog.html#addRightWidget">addRightWidget</a>().</p>
<!-- @@@addToolButton -->
<!-- $$$addWidgets[overload1]$$$addWidgetsQLabel*QWidget*QPushButton* -->
<h3 class="fn"><a name="addWidgets"></a><span class="type">void</span> Q3FileDialog::<span class="name">addWidgets</span> ( <span class="type"><a href="qlabel.html">QLabel</a></span> * <i>l</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i>, <span class="type"><a href="qpushbutton.html">QPushButton</a></span> * <i>b</i> )<tt> [protected]</tt></h3>
<p>Adds the specified widgets to the bottom of the file dialog. The label <i>l</i> is placed underneath the &quot;file name&quot; and the &quot;file types&quot; labels. The widget <i>w</i> is placed underneath the file types combobox. The button <i>b</i> is placed underneath the Cancel push button.</p>
<pre class="cpp"> MyFileDialog<span class="operator">::</span>MyFileDialog(<span class="type"><a href="qwidget.html">QWidget</a></span><span class="operator">*</span> parent<span class="operator">,</span> <span class="keyword">const</span> <span class="type">char</span><span class="operator">*</span> name) :
     <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span>(parent<span class="operator">,</span> name)
 {
     <span class="type"><a href="qlabel.html">QLabel</a></span><span class="operator">*</span> label <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qlabel.html">QLabel</a></span>(<span class="string">&quot;Added widgets&quot;</span><span class="operator">,</span> <span class="keyword">this</span>);
     <span class="type"><a href="qlineedit.html">QLineEdit</a></span><span class="operator">*</span> lineedit <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qlineedit.html">QLineEdit</a></span>(<span class="keyword">this</span>);
     <span class="type"><a href="qpushbutton.html">QPushButton</a></span><span class="operator">*</span> pushbutton <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qpushbutton.html">QPushButton</a></span>(<span class="keyword">this</span>);

     addWidgets(label<span class="operator">,</span> lineedit<span class="operator">,</span> pushbutton);
 }</pre>
<p>If you don't want to have one of the widgets added, pass 0 in that widget's position.</p>
<p>Every time you call this function, a new row of widgets will be added to the bottom of the file dialog.</p>
<p><b>See also </b><a href="q3filedialog.html#addToolButton">addToolButton</a>(), <a href="q3filedialog.html#addLeftWidget">addLeftWidget</a>(), and <a href="q3filedialog.html#addRightWidget">addRightWidget</a>().</p>
<!-- @@@addWidgets -->
<!-- $$$dir[overload1]$$$dir -->
<h3 class="fn"><a name="dir"></a>const <span class="type"><a href="qdir.html">QDir</a></span> * Q3FileDialog::<span class="name">dir</span> () const</h3>
<p>Returns the current directory shown in the file dialog.</p>
<p>The ownership of the <a href="qdir.html">QDir</a> pointer is transferred to the caller, so it must be deleted by the caller when no longer required.</p>
<p><b>See also </b><a href="q3filedialog.html#setDir">setDir</a>().</p>
<!-- @@@dir -->
<!-- $$$dirEntered[overload1]$$$dirEnteredconstQString& -->
<h3 class="fn"><a name="dirEntered"></a><span class="type">void</span> Q3FileDialog::<span class="name">dirEntered</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>directory</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user enters the given <i>directory</i>.</p>
<p><b>See also </b><a href="q3filedialog.html#dir">dir</a>().</p>
<!-- @@@dirEntered -->
<!-- $$$done[overload1]$$$doneint -->
<h3 class="fn"><a name="done"></a><span class="type">void</span> Q3FileDialog::<span class="name">done</span> ( <span class="type">int</span> <i>i</i> )<tt> [virtual slot]</tt></h3>
<p>Reimplemented from <a href="qdialog.html#done">QDialog::done</a>().</p>
<!-- @@@done -->
<!-- $$$eventFilter[overload1]$$$eventFilterQObject*QEvent* -->
<h3 class="fn"><a name="eventFilter"></a><span class="type">bool</span> Q3FileDialog::<span class="name">eventFilter</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>o</i>, <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qobject.html#eventFilter">QObject::eventFilter</a>().</p>
<!-- @@@eventFilter -->
<!-- $$$fileHighlighted[overload1]$$$fileHighlightedconstQString& -->
<h3 class="fn"><a name="fileHighlighted"></a><span class="type">void</span> Q3FileDialog::<span class="name">fileHighlighted</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>file</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user highlights the given <i>file</i>, i.e&#x2e; makes it the current file.</p>
<p><b>See also </b><a href="q3filedialog.html#fileSelected">fileSelected</a>() and <a href="q3filedialog.html#filesSelected">filesSelected</a>().</p>
<!-- @@@fileHighlighted -->
<!-- $$$fileSelected[overload1]$$$fileSelectedconstQString& -->
<h3 class="fn"><a name="fileSelected"></a><span class="type">void</span> Q3FileDialog::<span class="name">fileSelected</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>file</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user selects the given <i>file</i>.</p>
<p><b>See also </b><a href="q3filedialog.html#filesSelected">filesSelected</a>(), <a href="q3filedialog.html#fileHighlighted">fileHighlighted</a>(), and <a href="q3filedialog.html#selectedFile-prop">selectedFile</a>().</p>
<!-- @@@fileSelected -->
<!-- $$$filesSelected[overload1]$$$filesSelectedconstQStringList& -->
<h3 class="fn"><a name="filesSelected"></a><span class="type">void</span> Q3FileDialog::<span class="name">filesSelected</span> ( const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>files</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user selects the given <i>files</i> in <i>ExistingFiles</i> mode.</p>
<p><b>See also </b><a href="q3filedialog.html#fileSelected">fileSelected</a>(), <a href="q3filedialog.html#fileHighlighted">fileHighlighted</a>(), and <a href="q3filedialog.html#selectedFiles-prop">selectedFiles</a>().</p>
<!-- @@@filesSelected -->
<!-- $$$filterSelected[overload1]$$$filterSelectedconstQString& -->
<h3 class="fn"><a name="filterSelected"></a><span class="type">void</span> Q3FileDialog::<span class="name">filterSelected</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>filter</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the user selects the given <i>filter</i>.</p>
<p><b>See also </b><a href="q3filedialog.html#selectedFilter-prop">selectedFilter</a>().</p>
<!-- @@@filterSelected -->
<!-- $$$getExistingDirectory[overload1]$$$getExistingDirectoryconstQString&QWidget*constchar*constQString&boolbool -->
<h3 class="fn"><a name="getExistingDirectory"></a><span class="type"><a href="qstring.html">QString</a></span> Q3FileDialog::<span class="name">getExistingDirectory</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>dir</i> = QString(), <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>caption</i> = QString(), <span class="type">bool</span> <i>dirOnly</i> = true, <span class="type">bool</span> <i>resolveSymlinks</i> = true )<tt> [static]</tt></h3>
<p>This is a convenience static function that will return an existing directory selected by the user.</p>
<pre class="cpp"> <span class="type"><a href="qstring.html">QString</a></span> s <span class="operator">=</span> <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span><span class="operator">::</span>getExistingDirectory(
                 <span class="string">&quot;/home&quot;</span><span class="operator">,</span>
                 <span class="keyword">this</span><span class="operator">,</span>
                 <span class="string">&quot;get existing directory&quot;</span><span class="operator">,</span>
                 <span class="string">&quot;Choose a directory&quot;</span><span class="operator">,</span>
                 <span class="keyword">true</span>);</pre>
<p>This function creates a modal file dialog called <i>name</i>, with parent, <i>parent</i>. If parent is not 0, the dialog will be shown centered over the parent.</p>
<p>The dialog's working directory is set to <i>dir</i>, and the caption is set to <i>caption</i>. Either of these may be an empty string in which case the current directory and a default caption will be used respectively.</p>
<p>If <i>dirOnly</i> is true, then only directories will be shown in the file dialog; otherwise both directories and files will be shown.</p>
<p>Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If <i>resolveSymlinks</i> is false, the file dialog will treat symlinks as regular directories.</p>
<p>Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any QTimers and if parent is not 0 then it will position the dialog just under the parent's title bar.</p>
<p><b>See also </b><a href="q3filedialog.html#getOpenFileName">getOpenFileName</a>(), <a href="q3filedialog.html#getOpenFileNames">getOpenFileNames</a>(), and <a href="q3filedialog.html#getSaveFileName">getSaveFileName</a>().</p>
<!-- @@@getExistingDirectory -->
<!-- $$$getOpenFileName[overload1]$$$getOpenFileNameconstQString&constQString&QWidget*constchar*constQString&QString*bool -->
<h3 class="fn"><a name="getOpenFileName"></a><span class="type"><a href="qstring.html">QString</a></span> Q3FileDialog::<span class="name">getOpenFileName</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>startWith</i> = QString(), const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>filter</i> = QString(), <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>caption</i> = QString(), <span class="type"><a href="qstring.html">QString</a></span> * <i>selectedFilter</i> = 0, <span class="type">bool</span> <i>resolveSymlinks</i> = true )<tt> [static]</tt></h3>
<p>This is a convenience static function that returns an existing file selected by the user. If the user pressed Cancel, it returns a null string.</p>
<pre class="cpp"> <span class="type"><a href="qstring.html">QString</a></span> s <span class="operator">=</span> <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span><span class="operator">::</span>getOpenFileName(
                 <span class="string">&quot;/home&quot;</span><span class="operator">,</span>
                 <span class="string">&quot;Images (*.png *.xpm *.jpg)&quot;</span><span class="operator">,</span>
                 <span class="keyword">this</span><span class="operator">,</span>
                 <span class="string">&quot;open file dialog&quot;</span><span class="operator">,</span>
                 <span class="string">&quot;Choose a file to open&quot;</span>);</pre>
<p>The function creates a modal file dialog called <i>name</i>, with parent, <i>parent</i>. If a parent is not 0, the dialog will be shown centered over the parent.</p>
<p>The file dialog's working directory will be set to <i>startWith</i>. If <i>startWith</i> includes a file name, the file will be selected. The filter is set to <i>filter</i> so that only those files which match the filter are shown. The filter selected is set to <i>selectedFilter</i>. The parameters <i>startWith</i>, <i>selectedFilter</i> and <i>filter</i> may be an empty string.</p>
<p>The dialog's caption is set to <i>caption</i>. If <i>caption</i> is not specified then a default caption will be used.</p>
<p>Under Windows and Mac OS X, this static function will use the native file dialog and not a <a href="q3filedialog.html" class="compat">Q3FileDialog</a>, unless the style of the application is set to something other than the native style (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any QTimers and if parent is not 0 then it will position the dialog just under the parent's title bar).</p>
<p>Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If <i>resolveSymlinks</i> is false, the file dialog will treat symlinks as regular directories.</p>
<p><b>See also </b><a href="q3filedialog.html#getOpenFileNames">getOpenFileNames</a>(), <a href="q3filedialog.html#getSaveFileName">getSaveFileName</a>(), and <a href="q3filedialog.html#getExistingDirectory">getExistingDirectory</a>().</p>
<!-- @@@getOpenFileName -->
<!-- $$$getOpenFileNames[overload1]$$$getOpenFileNamesconstQString&constQString&QWidget*constchar*constQString&QString*bool -->
<h3 class="fn"><a name="getOpenFileNames"></a><span class="type"><a href="qstringlist.html">QStringList</a></span> Q3FileDialog::<span class="name">getOpenFileNames</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>filter</i> = QString(), const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>dir</i> = QString(), <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>caption</i> = QString(), <span class="type"><a href="qstring.html">QString</a></span> * <i>selectedFilter</i> = 0, <span class="type">bool</span> <i>resolveSymlinks</i> = true )<tt> [static]</tt></h3>
<p>This is a convenience static function that will return one or more existing files selected by the user.</p>
<pre class="cpp"> <span class="type"><a href="qstringlist.html">QStringList</a></span> files <span class="operator">=</span> <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span><span class="operator">::</span>getOpenFileNames(
                         <span class="string">&quot;Images (*.png *.xpm *.jpg)&quot;</span><span class="operator">,</span>
                         <span class="string">&quot;/home&quot;</span><span class="operator">,</span>
                         <span class="keyword">this</span><span class="operator">,</span>
                         <span class="string">&quot;open files dialog&quot;</span><span class="operator">,</span>
                         <span class="string">&quot;Select one or more files to open&quot;</span>);</pre>
<p>This function creates a modal file dialog called <i>name</i>, with parent <i>parent</i>. If <i>parent</i> is not 0, the dialog will be shown centered over the parent.</p>
<p>The file dialog's working directory will be set to <i>dir</i>. If <i>dir</i> includes a file name, the file will be selected. The filter is set to <i>filter</i> so that only those files which match the filter are shown. The filter selected is set to <i>selectedFilter</i>. The parameters <i>dir</i>, <i>selectedFilter</i> and <i>filter</i> may be empty strings.</p>
<p>The dialog's caption is set to <i>caption</i>. If <i>caption</i> is not specified then a default caption will be used.</p>
<p>Under Windows and Mac OS X, this static function will use the native file dialog and not a <a href="q3filedialog.html" class="compat">Q3FileDialog</a>, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any QTimers and if parent is not 0 then it will position the dialog just under the parent's title bar).</p>
<p>Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If <i>resolveSymlinks</i> is false, the file dialog will treat symlinks as regular directories.</p>
<p>Note that if you want to iterate over the list of files, you should iterate over a copy, e.g&#x2e;</p>
<pre class="cpp"> <span class="type"><a href="qstringlist.html">QStringList</a></span> list <span class="operator">=</span> files;
 <span class="type"><a href="qstringlist.html">QStringList</a></span><span class="operator">::</span>Iterator it <span class="operator">=</span> list<span class="operator">.</span>begin();
 <span class="keyword">while</span>(it <span class="operator">!</span><span class="operator">=</span> list<span class="operator">.</span>end()) {
     myProcessing(<span class="operator">*</span>it);
     <span class="operator">+</span><span class="operator">+</span>it;
 }</pre>
<p><b>See also </b><a href="q3filedialog.html#getOpenFileName">getOpenFileName</a>(), <a href="q3filedialog.html#getSaveFileName">getSaveFileName</a>(), and <a href="q3filedialog.html#getExistingDirectory">getExistingDirectory</a>().</p>
<!-- @@@getOpenFileNames -->
<!-- $$$getSaveFileName[overload1]$$$getSaveFileNameconstQString&constQString&QWidget*constchar*constQString&QString*bool -->
<h3 class="fn"><a name="getSaveFileName"></a><span class="type"><a href="qstring.html">QString</a></span> Q3FileDialog::<span class="name">getSaveFileName</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>startWith</i> = QString(), const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>filter</i> = QString(), <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>caption</i> = QString(), <span class="type"><a href="qstring.html">QString</a></span> * <i>selectedFilter</i> = 0, <span class="type">bool</span> <i>resolveSymlinks</i> = true )<tt> [static]</tt></h3>
<p>This is a convenience static function that will return a file name selected by the user. The file does not have to exist.</p>
<p>It creates a modal file dialog called <i>name</i>, with parent, <i>parent</i>. If a parent is not 0, the dialog will be shown centered over the parent.</p>
<pre class="cpp"> <span class="type"><a href="qstring.html">QString</a></span> s <span class="operator">=</span> <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span><span class="operator">::</span>getSaveFileName(
                 <span class="string">&quot;/home&quot;</span><span class="operator">,</span>
                 <span class="string">&quot;Images (*.png *.xpm *.jpg)&quot;</span><span class="operator">,</span>
                 <span class="keyword">this</span><span class="operator">,</span>
                 <span class="string">&quot;save file dialog&quot;</span><span class="operator">,</span>
                 <span class="string">&quot;Choose a filename to save under&quot;</span>);</pre>
<p>The file dialog's working directory will be set to <i>startWith</i>. If <i>startWith</i> includes a file name, the file will be selected. The filter is set to <i>filter</i> so that only those files which match the filter are shown. The filter selected is set to <i>selectedFilter</i>. The parameters <i>startWith</i>, <i>selectedFilter</i> and <i>filter</i> may be an empty string.</p>
<p>The dialog's caption is set to <i>caption</i>. If <i>caption</i> is not specified then a default caption will be used.</p>
<p>Under Windows and Mac OS X, this static function will use the native file dialog and not a <a href="q3filedialog.html" class="compat">Q3FileDialog</a>, unless the style of the application is set to something other than the native style. (Note that on Windows the dialog will spin a blocking modal event loop that will not dispatch any QTimers and if parent is not 0 then it will position the dialog just under the parent's title bar. And on the Mac the filter argument is ignored).</p>
<p>Under Unix/X11, the normal behavior of the file dialog is to resolve and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp, the file dialog will change to /var/tmp after entering /usr/tmp. If <i>resolveSymlinks</i> is false, the file dialog will treat symlinks as regular directories.</p>
<p><b>See also </b><a href="q3filedialog.html#getOpenFileName">getOpenFileName</a>(), <a href="q3filedialog.html#getOpenFileNames">getOpenFileNames</a>(), and <a href="q3filedialog.html#getExistingDirectory">getExistingDirectory</a>().</p>
<!-- @@@getSaveFileName -->
<!-- $$$iconProvider[overload1]$$$iconProvider -->
<h3 class="fn"><a name="iconProvider"></a><span class="type"><a href="q3fileiconprovider.html">Q3FileIconProvider</a></span> * Q3FileDialog::<span class="name">iconProvider</span> ()<tt> [static]</tt></h3>
<p>Returns a pointer to the icon provider currently set on the file dialog. By default there is no icon provider, and this function returns 0.</p>
<p><b>See also </b><a href="q3filedialog.html#setIconProvider">setIconProvider</a>() and <a href="q3fileiconprovider.html" class="compat">Q3FileIconProvider</a>.</p>
<!-- @@@iconProvider -->
<!-- $$$keyPressEvent[overload1]$$$keyPressEventQKeyEvent* -->
<h3 class="fn"><a name="keyPressEvent"></a><span class="type">void</span> Q3FileDialog::<span class="name">keyPressEvent</span> ( <span class="type"><a href="qkeyevent.html">QKeyEvent</a></span> * <i>ke</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#keyPressEvent">QWidget::keyPressEvent</a>().</p>
<!-- @@@keyPressEvent -->
<!-- $$$rereadDir[overload1]$$$rereadDir -->
<h3 class="fn"><a name="rereadDir"></a><span class="type">void</span> Q3FileDialog::<span class="name">rereadDir</span> ()</h3>
<p>Rereads the current directory shown in the file dialog.</p>
<p>The only time you will need to call this function is if the contents of the directory change and you wish to refresh the file dialog to reflect the change.</p>
<p><b>See also </b><a href="q3filedialog.html#resortDir">resortDir</a>().</p>
<!-- @@@rereadDir -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> Q3FileDialog::<span class="name">resizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$resortDir[overload1]$$$resortDir -->
<h3 class="fn"><a name="resortDir"></a><span class="type">void</span> Q3FileDialog::<span class="name">resortDir</span> ()</h3>
<p>Re-sorts the displayed directory.</p>
<p><b>See also </b><a href="q3filedialog.html#rereadDir">rereadDir</a>().</p>
<!-- @@@resortDir -->
<!-- $$$selectAll[overload1]$$$selectAllbool -->
<h3 class="fn"><a name="selectAll"></a><span class="type">void</span> Q3FileDialog::<span class="name">selectAll</span> ( <span class="type">bool</span> <i>b</i> )</h3>
<p>If <i>b</i> is true then all the files in the current directory are selected; otherwise, they are deselected.</p>
<!-- @@@selectAll -->
<!-- $$$setContentsPreview[overload1]$$$setContentsPreviewQWidget*Q3FilePreview* -->
<h3 class="fn"><a name="setContentsPreview"></a><span class="type">void</span> Q3FileDialog::<span class="name">setContentsPreview</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i>, <span class="type"><a href="q3filepreview.html">Q3FilePreview</a></span> * <i>preview</i> )</h3>
<p>Sets the widget to be used for displaying the contents of the file to the widget <i>w</i> and a preview of those contents to the <a href="q3filepreview.html" class="compat">Q3FilePreview</a> <i>preview</i>.</p>
<p>Normally you would create a preview widget that derives from both <a href="qwidget.html">QWidget</a> and <a href="q3filepreview.html" class="compat">Q3FilePreview</a>, so you should pass the same widget twice.</p>
<pre class="cpp"> <span class="keyword">class</span> Preview : <span class="keyword">public</span> <span class="type"><a href="qlabel.html">QLabel</a></span><span class="operator">,</span> <span class="keyword">public</span> <span class="type"><a href="q3filepreview.html">Q3FilePreview</a></span>
 {
 <span class="keyword">public</span>:
     Preview(<span class="type"><a href="qwidget.html">QWidget</a></span> <span class="operator">*</span>parent<span class="operator">=</span><span class="number">0</span>) : <span class="type"><a href="qlabel.html">QLabel</a></span>(parent) {}

     <span class="type">void</span> previewUrl(<span class="keyword">const</span> <span class="type"><a href="q3url.html">Q3Url</a></span> <span class="operator">&amp;</span>u)
     {
         <span class="type"><a href="qstring.html">QString</a></span> path <span class="operator">=</span> u<span class="operator">.</span>path();
         <span class="type"><a href="qpixmap.html">QPixmap</a></span> pix(path);
         <span class="keyword">if</span> (pix<span class="operator">.</span>isNull())
             setText(<span class="string">&quot;This is not a pixmap&quot;</span>);
         <span class="keyword">else</span>
             setPixmap(pix);
     }
 };

 <span class="comment">//...</span>

 <span class="type">int</span> main(<span class="type">int</span> argc<span class="operator">,</span> <span class="type">char</span><span class="operator">*</span><span class="operator">*</span> argv)
 {
     Preview<span class="operator">*</span> p <span class="operator">=</span> <span class="keyword">new</span> Preview;

     <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span><span class="operator">*</span> fd <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span>(<span class="keyword">this</span>);
     fd<span class="operator">-</span><span class="operator">&gt;</span>setContentsPreviewEnabled(<span class="keyword">true</span>);
     fd<span class="operator">-</span><span class="operator">&gt;</span>setContentsPreview(p<span class="operator">,</span> p);
     fd<span class="operator">-</span><span class="operator">&gt;</span>setPreviewMode(<span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span><span class="operator">::</span>Contents);
     fd<span class="operator">-</span><span class="operator">&gt;</span>show();
 }</pre>
<p><b>See also </b><a href="q3filedialog.html#contentsPreview-prop">setContentsPreviewEnabled</a>(), <a href="q3filedialog.html#setInfoPreview">setInfoPreview</a>(), and <a href="q3filedialog.html#previewMode-prop">setPreviewMode</a>().</p>
<!-- @@@setContentsPreview -->
<!-- $$$setDir[overload1]$$$setDirconstQDir& -->
<h3 class="fn"><a name="setDir"></a><span class="type">void</span> Q3FileDialog::<span class="name">setDir</span> ( const <span class="type"><a href="qdir.html">QDir</a></span> &amp; <i>dir</i> )</h3>
<p>Sets the file dialog's working directory to <i>dir</i>.</p>
<p><b>See also </b><a href="q3filedialog.html#dir">dir</a>().</p>
<!-- @@@setDir -->
<!-- $$$setDir$$$setDirconstQString& -->
<h3 class="fn"><a name="setDir-2"></a><span class="type">void</span> Q3FileDialog::<span class="name">setDir</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>pathstr</i> )<tt> [slot]</tt></h3>
<p>This is an overloaded function.</p>
<p>Sets the file dialog's working directory to <i>pathstr</i>.</p>
<p><b>See also </b><a href="q3filedialog.html#dir">dir</a>().</p>
<!-- @@@setDir -->
<!-- $$$setFilter[overload1]$$$setFilterconstQString& -->
<h3 class="fn"><a name="setFilter"></a><span class="type">void</span> Q3FileDialog::<span class="name">setFilter</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>newFilter</i> )<tt> [slot]</tt></h3>
<p>Sets the filter used in the file dialog to <i>newFilter</i>.</p>
<p>If <i>newFilter</i> contains a pair of parentheses containing one or more of &quot;anything*something&quot; separated by spaces or by semicolons then only the text contained in the parentheses is used as the filter. This means that these calls are all equivalent:</p>
<pre class="cpp"> fd<span class="operator">-</span><span class="operator">&gt;</span>setFilter(<span class="string">&quot;All C++ files (*.cpp *.cc *.C *.cxx *.c++)&quot;</span>);
 fd<span class="operator">-</span><span class="operator">&gt;</span>setFilter(<span class="string">&quot;*.cpp *.cc *.C *.cxx *.c++&quot;</span>);
 fd<span class="operator">-</span><span class="operator">&gt;</span>setFilter(<span class="string">&quot;All C++ files (*.cpp;*.cc;*.C;*.cxx;*.c++)&quot;</span>);
 fd<span class="operator">-</span><span class="operator">&gt;</span>setFilter(<span class="string">&quot;*.cpp;*.cc;*.C;*.cxx;*.c++&quot;</span>);</pre>
<p><b>See also </b><a href="q3filedialog.html#setFilters">setFilters</a>().</p>
<!-- @@@setFilter -->
<!-- $$$setFilters[overload1]$$$setFiltersconstQString& -->
<h3 class="fn"><a name="setFilters"></a><span class="type">void</span> Q3FileDialog::<span class="name">setFilters</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>filters</i> )<tt> [slot]</tt></h3>
<p>Sets the filters used in the file dialog to <i>filters</i>. Each group of filters must be separated by <tt>;;</tt> (<i>two</i> semicolons).</p>
<pre class="cpp"> <span class="type"><a href="qstring.html">QString</a></span> types(<span class="string">&quot;Image files (*.png *.xpm *.jpg);;&quot;</span>
               <span class="string">&quot;Text files (*.txt);;&quot;</span>
               <span class="string">&quot;Any files (*)&quot;</span>);
 <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span> fd <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span>(<span class="keyword">this</span>);
 fd<span class="operator">-</span><span class="operator">&gt;</span>setFilters(types);
 fd<span class="operator">-</span><span class="operator">&gt;</span><a href="qwidget.html#show">show</a>();</pre>
<!-- @@@setFilters -->
<!-- $$$setFilters$$$setFiltersconstchar** -->
<h3 class="fn"><a name="setFilters-2"></a><span class="type">void</span> Q3FileDialog::<span class="name">setFilters</span> ( const <span class="type">char</span> ** <i>types</i> )<tt> [slot]</tt></h3>
<p>This is an overloaded function.</p>
<p><i>types</i> must be a null-terminated list of strings.</p>
<!-- @@@setFilters -->
<!-- $$$setFilters$$$setFiltersconstQStringList& -->
<h3 class="fn"><a name="setFilters-3"></a><span class="type">void</span> Q3FileDialog::<span class="name">setFilters</span> ( const <span class="type"><a href="qstringlist.html">QStringList</a></span> &amp; <i>types</i> )<tt> [slot]</tt></h3>
<p>This is an overloaded function.</p>
<p><i>types</i> is a list of filter strings.</p>
<!-- @@@setFilters -->
<!-- $$$setIconProvider[overload1]$$$setIconProviderQ3FileIconProvider* -->
<h3 class="fn"><a name="setIconProvider"></a><span class="type">void</span> Q3FileDialog::<span class="name">setIconProvider</span> ( <span class="type"><a href="q3fileiconprovider.html">Q3FileIconProvider</a></span> * <i>provider</i> )<tt> [static]</tt></h3>
<p>Sets the <a href="q3fileiconprovider.html" class="compat">Q3FileIconProvider</a> used by the file dialog to <i>provider</i>.</p>
<p>The default is that there is no <a href="q3fileiconprovider.html" class="compat">Q3FileIconProvider</a> and <a href="q3filedialog.html" class="compat">Q3FileDialog</a> just draws a folder icon next to each directory and nothing next to files.</p>
<p><b>See also </b><a href="q3fileiconprovider.html" class="compat">Q3FileIconProvider</a> and <a href="q3filedialog.html#iconProvider">iconProvider</a>().</p>
<!-- @@@setIconProvider -->
<!-- $$$setInfoPreview[overload1]$$$setInfoPreviewQWidget*Q3FilePreview* -->
<h3 class="fn"><a name="setInfoPreview"></a><span class="type">void</span> Q3FileDialog::<span class="name">setInfoPreview</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i>, <span class="type"><a href="q3filepreview.html">Q3FilePreview</a></span> * <i>preview</i> )</h3>
<p>Sets the widget to be used for displaying information about the file to the widget <i>w</i> and a preview of that information to the <a href="q3filepreview.html" class="compat">Q3FilePreview</a> <i>preview</i>.</p>
<p>Normally you would create a preview widget that derives from both <a href="qwidget.html">QWidget</a> and <a href="q3filepreview.html" class="compat">Q3FilePreview</a>, so you should pass the same widget twice.</p>
<pre class="cpp"> <span class="keyword">class</span> Preview : <span class="keyword">public</span> <span class="type"><a href="qlabel.html">QLabel</a></span><span class="operator">,</span> <span class="keyword">public</span> <span class="type"><a href="q3filepreview.html">Q3FilePreview</a></span>
 {
 <span class="keyword">public</span>:
     Preview(<span class="type"><a href="qwidget.html">QWidget</a></span> <span class="operator">*</span>parent<span class="operator">=</span><span class="number">0</span>) : <span class="type"><a href="qlabel.html">QLabel</a></span>(parent) {}

     <span class="type">void</span> previewUrl(<span class="keyword">const</span> <span class="type"><a href="q3url.html">Q3Url</a></span> <span class="operator">&amp;</span>u)
     {
         <span class="type"><a href="qstring.html">QString</a></span> path <span class="operator">=</span> u<span class="operator">.</span>path();
         <span class="type"><a href="qpixmap.html">QPixmap</a></span> pix(path);
         <span class="keyword">if</span> (pix<span class="operator">.</span>isNull())
             setText(<span class="string">&quot;This is not a pixmap&quot;</span>);
         <span class="keyword">else</span>
             setText(<span class="string">&quot;This is a pixmap&quot;</span>);
     }
 };

 <span class="comment">//...</span>

 <span class="type">int</span> main(<span class="type">int</span> argc<span class="operator">,</span> <span class="type">char</span><span class="operator">*</span><span class="operator">*</span> argv)
 {
     Preview<span class="operator">*</span> p <span class="operator">=</span> <span class="keyword">new</span> Preview;

     <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span><span class="operator">*</span> fd <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span>(<span class="keyword">this</span>);
     fd<span class="operator">-</span><span class="operator">&gt;</span>setInfoPreviewEnabled(<span class="keyword">true</span>);
     fd<span class="operator">-</span><span class="operator">&gt;</span>setInfoPreview(p<span class="operator">,</span> p);
     fd<span class="operator">-</span><span class="operator">&gt;</span>setPreviewMode(<span class="type"><a href="q3filedialog.html">Q3FileDialog</a></span><span class="operator">::</span>Info);
     fd<span class="operator">-</span><span class="operator">&gt;</span>show();
 }</pre>
<p><b>See also </b><a href="q3filedialog.html#setContentsPreview">setContentsPreview</a>(), <a href="q3filedialog.html#infoPreview-prop">setInfoPreviewEnabled</a>(), and <a href="q3filedialog.html#previewMode-prop">setPreviewMode</a>().</p>
<!-- @@@setInfoPreview -->
<!-- $$$setSelectedFilter[overload1]$$$setSelectedFilterconstQString& -->
<h3 class="fn"><a name="setSelectedFilter"></a><span class="type">void</span> Q3FileDialog::<span class="name">setSelectedFilter</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>mask</i> )<tt> [virtual]</tt></h3>
<p>Sets the current filter selected in the file dialog to the first one that contains the text <i>mask</i>.</p>
<p><b>See also </b><a href="q3filedialog.html#selectedFilter-prop">selectedFilter</a>().</p>
<!-- @@@setSelectedFilter -->
<!-- $$$setSelectedFilter$$$setSelectedFilterint -->
<h3 class="fn"><a name="setSelectedFilter-2"></a><span class="type">void</span> Q3FileDialog::<span class="name">setSelectedFilter</span> ( <span class="type">int</span> <i>n</i> )<tt> [virtual]</tt></h3>
<p>This is an overloaded function.</p>
<p>Sets the current filter selected in the file dialog to the <i>n</i>-th filter in the filter list.</p>
<p><b>See also </b><a href="q3filedialog.html#filterSelected">filterSelected</a>(), <a href="q3filedialog.html#selectedFilter-prop">selectedFilter</a>(), <a href="q3filedialog.html#selectedFiles-prop">selectedFiles</a>(), and <a href="q3filedialog.html#selectedFile-prop">selectedFile</a>().</p>
<!-- @@@setSelectedFilter -->
<!-- $$$setSelection[overload1]$$$setSelectionconstQString& -->
<h3 class="fn"><a name="setSelection"></a><span class="type">void</span> Q3FileDialog::<span class="name">setSelection</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>filename</i> )</h3>
<p>Sets the default selection to <i>filename</i>. If <i>filename</i> is absolute, <a href="q3filedialog.html#setDir">setDir</a>() is also called to set the file dialog's working directory to the filename's directory.</p>
<!-- @@@setSelection -->
<!-- $$$setUrl[overload1]$$$setUrlconstQ3UrlOperator& -->
<h3 class="fn"><a name="setUrl"></a><span class="type">void</span> Q3FileDialog::<span class="name">setUrl</span> ( const <span class="type"><a href="q3urloperator.html">Q3UrlOperator</a></span> &amp; <i>url</i> )<tt> [slot]</tt></h3>
<p>Sets the file dialog's working directory to the directory specified at <i>url</i>.</p>
<p><b>See also </b><a href="q3filedialog.html#url">url</a>().</p>
<!-- @@@setUrl -->
<!-- $$$url[overload1]$$$url -->
<h3 class="fn"><a name="url"></a><span class="type"><a href="q3url.html">Q3Url</a></span> Q3FileDialog::<span class="name">url</span> () const</h3>
<p>Returns the URL of the current working directory in the file dialog.</p>
<p><b>See also </b><a href="q3filedialog.html#setUrl">setUrl</a>().</p>
<!-- @@@url -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2015 The Qt Company Ltd.
      Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Qt and respective logos are trademarks of The Qt Company Ltd 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>