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.
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 ) |
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 ) |
Use nameFilters() instead.
See also setFilters().
Use the getExistingDirectory() overload that takes parent as the first argument instead.
Use the getOpenFileName() overload that takes parent as the first argument instead.
Use the getOpenFileNames() overload that takes parent as the first argument instead.
Use the getSaveFileName() overload that takes parent as the first argument instead.
Use fileMode() instead.
See also setMode().
Use selectNameFilter() instead.
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];
Use selectedNameFilter() instead.
Use setDirectory() instead.
Use setDirectory() instead.
Use setNameFilter() instead.
Use setNameFilters() instead.
See also filters().
Use setFileMode() instead.
See also mode().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.