QwwFileChooser Class
A widget for choosing a file or directory from the file system More...
Header: | #include <QwwFileChooser> |
Inherits: | QwwButtonLineEdit. |
Properties
|
|
- 7 properties inherited from QwwButtonLineEdit
Public Functions
QwwFileChooser(QWidget * parent = 0) | |
QFileDialog::AcceptMode | acceptMode() const |
QCompleter::CompletionMode | completionMode() const |
QFileDialog::FileMode | fileMode() const |
const QString & | filter() const |
void | setAcceptMode(QFileDialog::AcceptMode m) |
void | setCompletionMode(QCompleter::CompletionMode m) |
void | setFileMode(QFileDialog::FileMode m) |
void | setFilter(const QString & f) |
virtual void | setModel(QAbstractItemModel * m) |
void | setUsesNativeFileDialog(bool n) |
bool | usesNativeFileDialog() const |
- 9 public functions inherited from QwwButtonLineEdit
Public Slots
void | chooseFile() |
- 6 public slots inherited from QwwButtonLineEdit
Additional Inherited Members
- 2 signals inherited from QwwButtonLineEdit
- 2 protected functions inherited from QwwButtonLineEdit
Detailed Description
A widget for choosing a file or directory from the file system
The widget is able to work in two modes - open (existing files or directories -- for loading files) and save (for saving files).
Property Documentation
acceptMode : QFileDialog::AcceptMode
This property holds this property holds the current accept mode of the widget.
Access functions:
QFileDialog::AcceptMode | acceptMode() const |
void | setAcceptMode(QFileDialog::AcceptMode m) |
completionMode : QCompleter::CompletionMode
This property holds this property holds the current completion mode of the widget.
Access functions:
QCompleter::CompletionMode | completionMode() const |
void | setCompletionMode(QCompleter::CompletionMode m) |
fileMode : QFileDialog::FileMode
This property holds this property holds the current file mode of the widget.
Access functions:
QFileDialog::FileMode | fileMode() const |
void | setFileMode(QFileDialog::FileMode m) |
filter : QString
This property holds this property holds information about the currently chosen filter.
Access functions:
const QString & | filter() const |
void | setFilter(const QString & f) |
usesNativeFileDialog : bool
This property holds this property holds information whether the widget uses a native file dialog for choosing files (or directories).
Access functions:
bool | usesNativeFileDialog() const |
void | setUsesNativeFileDialog(bool n) |
Member Function Documentation
QwwFileChooser::QwwFileChooser(QWidget * parent = 0)
Constructs a file chooser with a given parent.
void QwwFileChooser::chooseFile() [slot]
This slot opens a file dialog for choosing one or more entries from the file system according to currently active mode.
See also acceptMode.
void QwwFileChooser::setModel(QAbstractItemModel * m) [virtual]
Sets the model used by the widget to m.