Definition at line 66 of file qfiledialog.h.
#include <qfiledialog.h>

Public Types |
|
| enum | ViewMode { Detail, List } |
| enum | FileMode
{ AnyFile, ExistingFile, Directory, ExistingFiles, DirectoryOnly } |
| enum | AcceptMode { AcceptOpen, AcceptSave } |
| enum | DialogLabel
{ LookIn, FileName, FileType, Accept, Reject } |
| enum | Option
{ ShowDirsOnly = 0x00000001, DontResolveSymlinks = 0x00000002, DontConfirmOverwrite = 0x00000004, DontUseSheet = 0x00000008, DontUseNativeDialog = 0x00000010, ReadOnly = 0x00000020, HideNameFilterDetails = 0x00000040 } |
Signals |
|
| void | fileSelected (const QString &file) |
| void | filesSelected (const QStringList &files) |
| void | currentChanged (const QString &path) |
| void | directoryEntered (const QString &directory) |
| void | filterSelected (const QString &filter) |
Public Member Functions |
|
| QFileDialog (QWidget *parent, Qt::WindowFlags f) | |
| QFileDialog (QWidget *parent=0, const QString &caption=QString(), const QString &directory=QString(), const QString &filter=QString()) | |
| ~QFileDialog () | |
| void | setDirectory (const QString &directory) |
| void | setDirectory (const QDir &directory) |
| QDir | directory () const |
| void | selectFile (const QString &filename) |
| QStringList | selectedFiles () const |
| void | setNameFilterDetailsVisible (bool enabled) |
| bool | isNameFilterDetailsVisible () const |
| void | setNameFilter (const QString &filter) |
| void | setNameFilters (const QStringList &filters) |
| QStringList | nameFilters () const |
| void | selectNameFilter (const QString &filter) |
| QString | selectedNameFilter () const |
| QDir::Filters | filter () const |
| void | setFilter (QDir::Filters filters) |
| void | setViewMode (ViewMode mode) |
| ViewMode | viewMode () const |
| void | setFileMode (FileMode mode) |
| FileMode | fileMode () const |
| void | setAcceptMode (AcceptMode mode) |
| AcceptMode | acceptMode () const |
| void | setReadOnly (bool enabled) |
| bool | isReadOnly () const |
| void | setResolveSymlinks (bool enabled) |
| bool | resolveSymlinks () const |
| void | setSidebarUrls (const QList< QUrl > &urls) |
| QList< QUrl > | sidebarUrls () const |
| QByteArray | saveState () const |
| bool | restoreState (const QByteArray &state) |
| void | setConfirmOverwrite (bool enabled) |
| bool | confirmOverwrite () const |
| void | setDefaultSuffix (const QString &suffix) |
| QString | defaultSuffix () const |
| void | setHistory (const QStringList &paths) |
| QStringList | history () const |
| void | setItemDelegate (QAbstractItemDelegate *delegate) |
| QAbstractItemDelegate * | itemDelegate () const |
| void | setIconProvider (QFileIconProvider *provider) |
| QFileIconProvider * | iconProvider () const |
| void | setLabelText (DialogLabel label, const QString &text) |
| QString | labelText (DialogLabel label) const |
| void | setProxyModel (QAbstractProxyModel *model) |
| QAbstractProxyModel * | proxyModel () const |
| void | setOption (Option option, bool on=true) |
| bool | testOption (Option option) const |
| void | setOptions (Options options) |
| Options | options () const |
| void | open (QObject *receiver, const char *member) |
| void | setVisible (bool visible) |
Static Public Member Functions |
|
| static QString | getOpenFileName (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0, Options options=0) |
| static QString | getSaveFileName (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0, Options options=0) |
| static QString | getExistingDirectory (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), Options options=ShowDirsOnly) |
| static QStringList | getOpenFileNames (QWidget *parent=0, const QString &caption=QString(), const QString &dir=QString(), const QString &filter=QString(), QString *selectedFilter=0, Options options=0) |
Protected Member Functions |
|
| QFileDialog (const QFileDialogArgs &args) | |
| void | done (int result) |
| void | accept () |
| void | changeEvent (QEvent *e) |
Properties |
|
| ViewMode | viewMode |
| FileMode | fileMode |
| AcceptMode | acceptMode |
| bool | readOnly |
| bool | resolveSymlinks |
| bool | confirmOverwrite |
| QString | defaultSuffix |
| bool | nameFilterDetailsVisible |
| Options | options |
| enum ViewMode |
Definition at line 83 of file qfiledialog.h.
| enum FileMode |
Definition at line 84 of file qfiledialog.h.
| enum AcceptMode |
Definition at line 85 of file qfiledialog.h.
{ AcceptOpen, AcceptSave };
| enum DialogLabel |
Definition at line 86 of file qfiledialog.h.
| enum Option |
| ShowDirsOnly | |
| DontResolveSymlinks | |
| DontConfirmOverwrite | |
| DontUseSheet | |
| DontUseNativeDialog | |
| ReadOnly | |
| HideNameFilterDetails |
Definition at line 89 of file qfiledialog.h.
{
ShowDirsOnly = 0x00000001,
DontResolveSymlinks = 0x00000002,
DontConfirmOverwrite = 0x00000004,
DontUseSheet = 0x00000008,
DontUseNativeDialog = 0x00000010,
ReadOnly = 0x00000020,
HideNameFilterDetails = 0x00000040
};
| QFileDialog | ( | QWidget * | parent, |
| Qt::WindowFlags | f | ||
| ) |
| ~QFileDialog | ( | ) |
| QFileDialog | ( | const QFileDialogArgs & | args | ) | [protected] |
| void setDirectory | ( | const QString & | directory | ) |
| void setDirectory | ( | const QDir & | directory | ) | [inline] |
Definition at line 320 of file qfiledialog.h.
{ setDirectory(adirectory.absolutePath()); }
| QDir directory | ( | ) | const |
| void selectFile | ( | const QString & | filename | ) |
| QStringList selectedFiles | ( | ) | const |
| void setNameFilterDetailsVisible | ( | bool | enabled | ) |
| bool isNameFilterDetailsVisible | ( | ) | const |
| void setNameFilter | ( | const QString & | filter | ) |
| void setNameFilters | ( | const QStringList & | filters | ) |
| QStringList nameFilters | ( | ) | const |
| void selectNameFilter | ( | const QString & | filter | ) |
| QString selectedNameFilter | ( | ) | const |
| QDir::Filters filter | ( | ) | const |
| void setFilter | ( | QDir::Filters | filters | ) |
| void setViewMode | ( | ViewMode | mode | ) |
| ViewMode viewMode | ( | ) | const |
| void setFileMode | ( | FileMode | mode | ) |
| FileMode fileMode | ( | ) | const |
| void setAcceptMode | ( | AcceptMode | mode | ) |
| AcceptMode acceptMode | ( | ) | const |
| void setReadOnly | ( | bool | enabled | ) |
| bool isReadOnly | ( | ) | const |
| void setResolveSymlinks | ( | bool | enabled | ) |
| bool resolveSymlinks | ( | ) | const |
| QByteArray saveState | ( | ) | const |
| bool restoreState | ( | const QByteArray & | state | ) |
| void setConfirmOverwrite | ( | bool | enabled | ) |
| bool confirmOverwrite | ( | ) | const |
| void setDefaultSuffix | ( | const QString & | suffix | ) |
| QString defaultSuffix | ( | ) | const |
| void setHistory | ( | const QStringList & | paths | ) |
| QStringList history | ( | ) | const |
| void setItemDelegate | ( | QAbstractItemDelegate * | delegate | ) |
| QAbstractItemDelegate* itemDelegate | ( | ) | const |
| void setIconProvider | ( | QFileIconProvider * | provider | ) |
| QFileIconProvider* iconProvider | ( | ) | const |
| void setLabelText | ( | DialogLabel | label, |
| const QString & | text | ||
| ) |
| QString labelText | ( | DialogLabel | label | ) | const |
| void setProxyModel | ( | QAbstractProxyModel * | model | ) |
| QAbstractProxyModel* proxyModel | ( | ) | const |
| void setOption | ( | Option | option, |
| bool | on = true |
||
| ) |
| bool testOption | ( | Option | option | ) | const |
| void setOptions | ( | Options | options | ) |
| Options options | ( | ) | const |
| void open | ( | QObject * | receiver, |
| const char * | member | ||
| ) |
| void setVisible | ( | bool | visible | ) | [virtual] |
Reimplemented from QDialog.
| void fileSelected | ( | const QString & | file | ) | [signal] |
| void filesSelected | ( | const QStringList & | files | ) | [signal] |
| void currentChanged | ( | const QString & | path | ) | [signal] |
| void directoryEntered | ( | const QString & | directory | ) | [signal] |
| void filterSelected | ( | const QString & | filter | ) | [signal] |
| void done | ( | int | result | ) | [protected, virtual] |
Reimplemented from QDialog.
| void accept | ( | ) | [protected, virtual] |
Reimplemented from QDialog.
ViewMode
viewMode [read, write] |
Definition at line 71 of file qfiledialog.h.
FileMode
fileMode [read, write] |
Definition at line 72 of file qfiledialog.h.
AcceptMode
acceptMode [read, write] |
Definition at line 73 of file qfiledialog.h.
bool readOnly [read, write] |
Definition at line 74 of file qfiledialog.h.
bool resolveSymlinks [read,
write] |
Definition at line 75 of file qfiledialog.h.
bool confirmOverwrite [read,
write] |
Definition at line 76 of file qfiledialog.h.
QString defaultSuffix [read,
write] |
Definition at line 77 of file qfiledialog.h.
bool nameFilterDetailsVisible [read,
write] |
Definition at line 79 of file qfiledialog.h.
Options options [read, write] |
Definition at line 80 of file qfiledialog.h.