Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

Qt 3 Support Members for QFileDialog

The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.

Public Functions

QStringList filters () const
FileMode mode () const
void selectFilter ( const QString & filter )
QString selectedFile () const
QString selectedFilter () const
void setDir ( const QString & directory )
void setDir ( const QDir & directory )
void setFilter ( const QString & filter )
void setFilters ( const QStringList & filters )
void setMode ( FileMode m )
  • 60 public functions inherited from QWidget
  • 8 public functions inherited from QObject
  • 8 public functions inherited from QPaintDevice

Static Public Members

QString getExistingDirectory ( const QString & dir, QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), bool dirOnly = true, bool resolveSymlinks = true )
QString getOpenFileName ( const QString & dir, const QString & filter = QString(), QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), QString * selectedFilter = 0, bool resolveSymlinks = true )
QStringList getOpenFileNames ( const QString & filter, const QString & dir = QString(), QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), QString * selectedFilter = 0, bool resolveSymlinks = true )
QString getSaveFileName ( const QString & dir, const QString & filter = QString(), QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), QString * selectedFilter = 0, bool resolveSymlinks = true )
  • 1 static public member inherited from QWidget
  • 13 static public members inherited from QPaintDevice

Member Function Documentation

QStringList QFileDialog::filters () const

Use nameFilters() instead.

See also setFilters().

QString QFileDialog::getExistingDirectory ( const QString & dir, QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), bool dirOnly = true, bool resolveSymlinks = true ) [static]

Use the getExistingDirectory() overload that takes parent as the first argument instead.

QString QFileDialog::getOpenFileName ( const QString & dir, const QString & filter = QString(), QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), QString * selectedFilter = 0, bool resolveSymlinks = true ) [static]

Use the getOpenFileName() overload that takes parent as the first argument instead.

QStringList QFileDialog::getOpenFileNames ( const QString & filter, const QString & dir = QString(), QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), QString * selectedFilter = 0, bool resolveSymlinks = true ) [static]

Use the getOpenFileNames() overload that takes parent as the first argument instead.

QString QFileDialog::getSaveFileName ( const QString & dir, const QString & filter = QString(), QWidget * parent = 0, const char * name = 0, const QString & caption = QString(), QString * selectedFilter = 0, bool resolveSymlinks = true ) [static]

Use the getSaveFileName() overload that takes parent as the first argument instead.

FileMode QFileDialog::mode () const

Use fileMode() instead.

See also setMode().

void QFileDialog::selectFilter ( const QString & filter )

Use selectNameFilter() instead.

QString QFileDialog::selectedFile () const

Use selectedFiles() instead.

For example, if you have code like

 QString selected = dialog->selectedFile();

you can rewrite it as

  QStringList files = dialog->selectedFiles();
  QString selected;
  if (!files.isEmpty())
      selected = files[0];

QString QFileDialog::selectedFilter () const

Use selectedNameFilter() instead.

void QFileDialog::setDir ( const QString & directory )

Use setDirectory() instead.

void QFileDialog::setDir ( const QDir & directory )

Use setDirectory() instead.

void QFileDialog::setFilter ( const QString & filter )

Use setNameFilter() instead.

void QFileDialog::setFilters ( const QStringList & filters )

Use setNameFilters() instead.

See also filters().

void QFileDialog::setMode ( FileMode m )

Use setFileMode() instead.

See also mode().

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 4.8
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web