|
| QgsFileWidget (QWidget *parent=nullptr) |
| QgsFileWidget creates a widget for selecting a file or a folder. More...
|
|
bool | confirmOverwrite () const |
| Returns whether a confirmation will be shown when overwriting an existing file. More...
|
|
QString | defaultRoot () const |
| Returns the default root path. More...
|
|
QString | dialogTitle () const |
| Returns the open file dialog title. More...
|
|
QString | filePath () |
| Returns the current file path(s). More...
|
|
bool | fileWidgetButtonVisible () const |
| Returns true if the tool button is shown. More...
|
|
QString | filter () const |
| returns the filters used for QDialog::getOpenFileName More...
|
|
bool | fullUrl () const |
| Returns true if the links shown use the full path. More...
|
|
QgsFilterLineEdit * | lineEdit () |
| Returns a pointer to the widget's line edit, which can be used to customize the appearance and behavior of the line edit portion of the widget. More...
|
|
QFileDialog::Options | options () const |
| Returns the additional options used for QFileDialog. More...
|
|
QgsFileWidget::RelativeStorage | relativeStorage () const |
| Returns if the relative path is with respect to the project path or the default path. More...
|
|
QString | selectedFilter () const |
| Returns the selected filter from the last opened file dialog. More...
|
|
void | setConfirmOverwrite (bool confirmOverwrite) |
| Sets whether a confirmation to overwrite an existing file will appear. More...
|
|
void | setDefaultRoot (const QString &defaultRoot) |
| Returns the default root path used as the first shown location when picking a file and used if the RelativeStorage is RelativeDefaultPath. More...
|
|
void | setDialogTitle (const QString &title) |
| Sets the title to use for the open file dialog. More...
|
|
void | setFilePath (const QString &path) |
| Sets the current file path. More...
|
|
void | setFileWidgetButtonVisible (bool visible) |
| Sets whether the tool button is visible. More...
|
|
void | setFilter (const QString &filter) |
| setFilter sets the filter used by the model to filters. More...
|
|
void | setFullUrl (bool fullUrl) |
| Sets whether links shown use the full path. More...
|
|
void | setOptions (QFileDialog::Options options) |
| Set additional options used for QFileDialog. More...
|
|
virtual void | setReadOnly (bool readOnly) |
| Sets whether the widget should be read only. More...
|
|
void | setRelativeStorage (QgsFileWidget::RelativeStorage relativeStorage) |
| Sets whether the relative path is with respect to the project path or the default path. More...
|
|
void | setSelectedFilter (const QString &selectedFilter) |
| Sets the selected filter when the file dialog opens. More...
|
|
void | setStorageMode (QgsFileWidget::StorageMode storageMode) |
| Sets the widget's storage mode (i.e. More...
|
|
void | setUseLink (bool useLink) |
| Sets whether the file path will be shown as a link. More...
|
|
QgsFileWidget::StorageMode | storageMode () const |
| Returns the widget's storage mode (i.e. More...
|
|
bool | useLink () const |
| Returns true if the file path will be shown as a link. More...
|
|