Class: QgsRasterFormatSaveOptionsWidget¶
-
class
qgis.gui.
QgsRasterFormatSaveOptionsWidget
¶ Bases:
PyQt5.QtWidgets.QWidget
A widget to select format-specific raster saving options
Methods
Opens window with options description for given provider and output format
Returns list of selected options
Set output raster format, it is used to determine list of available options
Populate widget with user-defined options.
Set provider key, , it is used to determine list of available options
Set pyramids format to use
Set output raster file name
Set output raster layer
Set widget look and feel
- param event
Reloads profiles list from QGIS settings
Validates options correctness
Signals
optionsChanged(self) [signal]
Attributes
-
Default
= 0¶
-
Full
= 1¶
-
LineEdit
= 3¶
-
ProfileLineEdit
= 4¶
-
Table
= 2¶
-
class
Type
¶ Bases:
int
-
actionEvent
()¶
-
apply
(self)¶
-
changeEvent
()¶
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
createOptions
()¶
-
currentProfileKey
()¶
-
customEvent
()¶
-
deleteCreateOptions
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
enterEvent
()¶
-
event
()¶
-
eventFilter
()¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
helpOptions
(self)¶ Opens window with options description for given provider and output format
-
hideEvent
()¶
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
mOptionsAddButton_clicked
()¶
-
mOptionsDeleteButton_clicked
()¶
-
mOptionsLineEdit_editingFinished
()¶
-
mProfileDeleteButton_clicked
()¶
-
mProfileNewButton_clicked
()¶
-
mProfileResetButton_clicked
()¶
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
options
(self) → List[str]¶ Returns list of selected options
See also
- Return type
List[str]
-
optionsChanged
¶ optionsChanged(self) [signal]
-
optionsTableChanged
()¶
-
optionsTableEnableDeleteButton
()¶
-
paintEvent
()¶
-
profiles
()¶
-
pseudoFormat
()¶
-
receivers
()¶
-
resizeEvent
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setCreateOptions
()¶
-
setFormat
(self, format: str)¶ Set output raster format, it is used to determine list of available options
- Parameters
format (str) –
-
setOptions
(self, options: str)¶ Populate widget with user-defined options. String should contain key=value pairs separated by spaces, e.g. “TILED=YES TFW=YES”
See also
New in version 3.0.
- Parameters
options (str) –
-
setProvider
(self, provider: str)¶ Set provider key, , it is used to determine list of available options
- Parameters
provider (str) –
-
setPyramidsFormat
(self, format: QgsRaster.RasterPyramidsFormat)¶ Set pyramids format to use
- Parameters
format (QgsRaster.RasterPyramidsFormat) –
-
setRasterFileName
(self, file: str)¶ Set output raster file name
- Parameters
file (str) –
-
setRasterLayer
(self, rasterLayer: QgsRasterLayer)¶ Set output raster layer
- Parameters
rasterLayer (QgsRasterLayer) –
-
setType
(self, type: QgsRasterFormatSaveOptionsWidget.Type = QgsRasterFormatSaveOptionsWidget.Default)¶ Set widget look and feel
- Parameters
type (QgsRasterFormatSaveOptionsWidget.Type = QgsRasterFormatSaveOptionsWidget.Default) –
-
settingsKey
()¶
-
showEvent
(self, event: QShowEvent)¶ - Parameters
event (QShowEvent) –
-
swapOptionsUI
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateControls
()¶
-
updateMicroFocus
()¶
-
updateOptions
()¶
-
updateProfiles
(self)¶ Reloads profiles list from QGIS settings
-
validateOptions
(self, gui: bool = True, reportOk: bool = True) → str¶ Validates options correctness
- Parameters
gui (bool = True) –
reportOk (bool = True) –
- Return type
str
-
wheelEvent
()¶