Class: QgsRasterLayerProperties¶
A dialog for raster layer properties.
Added in version 3.12.

QgsRasterLayerProperties showing the ‘Information’ page¶

QgsRasterLayerProperties showing the ‘Source’ page¶
Class Hierarchy¶
Base classes¶
Base class for “layer properties” dialogs, containing common utilities for handling functionality in these dialogs. |
|
A base dialog for options and properties dialogs that offers vertical tabs. |
|
Methods
Saves the default style when appropriate button is pressed |
|
Virtual Methods
In PyQGIS, only methods marked as virtual
can be safely overridden in a Python subclass of QgsRasterLayerProperties. See the FAQ for more details.
- class qgis.gui.QgsRasterLayerProperties[source]¶
Bases:
QgsLayerPropertiesDialog
- __init__(lyr: QgsMapLayer | None, canvas: QgsMapCanvas | None, parent: QWidget | None = None, a3: Qt.WindowFlags | Qt.WindowType = QgsGuiUtils.ModalDialogFlags)
Constructor
- Parameters:
lyr (Optional[QgsMapLayer]) – Map layer for which properties will be displayed
canvas (Optional[QgsMapCanvas]) – the
QgsMapCanvas
instanceparent (Optional[QWidget] = None) – the parent of this widget
fl – windows flag
a3 (Union[Qt.WindowFlags, Qt.WindowType] = QgsGuiUtils.ModalDialogFlags)
- virtual createExpressionContext(self) QgsExpressionContext [source]¶
- Return type:
- initialize()¶
- openUrl()¶
- refocusDialog()¶
- saveDefaultStyle(self)[source]¶
Saves the default style when appropriate button is pressed
Deprecated since version 3.40: Use
saveStyleAsDefault()
instead.
- storeCurrentStyleForUndo()¶