QgsRasterFormatSaveOptionsWidget class
A widget to select format-specific raster saving options.
Contents
- Reference
Public functions
- auto options() const -> QStringList
- Returns list of selected options.
- void setFormat(const QString& format)
- Set output raster format, it is used to determine list of available options.
- void setOptions(const QString& options)
- Populate widget with user-defined options.
- void setProvider(const QString& provider)
- Set provider key, , it is used to determine list of available options.
-
void setPyramidsFormat(QgsRaster::
RasterPyramidsFormat format) - Set pyramids format to use.
- void setRasterFileName(const QString& file)
- Set output raster file name.
- void setRasterLayer(QgsRasterLayer* rasterLayer)
- Set output raster layer.
-
void setType(QgsRasterFormatSaveOptionsWidget::
Type type = Default) - Set widget look and feel.
Public slots
- void helpOptions()
- Opens window with options description for given provider and output format.
- void updateProfiles()
- Reloads profiles list from QGIS settings.
- auto validateOptions(bool gui = true, bool reportOk = true) -> QString
- Validates options correctness.
Function documentation
QStringList QgsRasterFormatSaveOptionsWidget:: options() const
Returns list of selected options.
void QgsRasterFormatSaveOptionsWidget:: setOptions(const QString& options)
Populate widget with user-defined options.
String should contain key=value pairs separated by spaces, e.g. "TILED=YES TFW=YES"