#include <qgsnewvectorlayerdialog.h>
Definition at line 32 of file qgsnewvectorlayerdialog.h.
◆ QgsNewVectorLayerDialog()
QgsNewVectorLayerDialog::QgsNewVectorLayerDialog |
( |
QWidget * |
parent = nullptr , |
|
|
Qt::WindowFlags |
fl = QgsGuiUtils::ModalDialogFlags |
|
) |
| |
◆ accept
void QgsNewVectorLayerDialog::accept |
( |
| ) |
|
|
overrideslot |
◆ attributes()
void QgsNewVectorLayerDialog::attributes |
( |
QList< QPair< QString, QString > > & |
at | ) |
const |
◆ crs()
◆ execAndCreateLayer()
Runs the dialog and creates a layer matching the dialog parameters.
If the initialPath argument is specified, then the dialog will default to the specified filename.
Returns a filename if the dialog was accepted, or an empty string if the dialog was canceled. If the dialog was accepted but an error occurred while creating the file, then the function will return an empty string and errorMessage will contain the error message.
If encoding is specified, it will be set to the encoding of the created file.
- Parameters
-
errorMessage | will be set to any error message encountered during layer creation |
parent | parent widget for dialog |
initialPath | initial file path to show in dialog |
encoding | if specified, will be set to file encoding of created layer |
crs | default layer CRS to show in dialog |
- Returns
- Newly created file name, or an empty string if user canceled or an error occurred.
- Since
- QGIS 3.4.5
Definition at line 319 of file qgsnewvectorlayerdialog.cpp.
◆ filename()
QString QgsNewVectorLayerDialog::filename |
( |
| ) |
const |
◆ runAndCreateLayer()
Runs the dialog and creates a layer matching the dialog parameters.
If the initialPath argument is specified, then the dialog will default to the specified filename.
- Returns
- fileName on success, empty string use aborted, QString() if creation failed
- Deprecated:
- since QGIS 3.4.5 - use execAndCreateLayer() instead.
Definition at line 277 of file qgsnewvectorlayerdialog.cpp.
◆ selectedFileEncoding()
QString QgsNewVectorLayerDialog::selectedFileEncoding |
( |
| ) |
const |
◆ selectedFileFormat()
QString QgsNewVectorLayerDialog::selectedFileFormat |
( |
| ) |
const |
◆ selectedType()
◆ setCrs()
◆ setFilename()
void QgsNewVectorLayerDialog::setFilename |
( |
const QString & |
filename | ) |
|
The documentation for this class was generated from the following files: