Class: QgsRasterLayerProperties

Property sheet for a raster map layer

Added in version 3.12.

QgsRasterLayerProperties showing the 'Information' page

QgsRasterLayerProperties showing the ‘Information’ page

QgsRasterLayerProperties showing the 'Source' page

QgsRasterLayerProperties showing the ‘Source’ page

Class Hierarchy

Inheritance diagram of qgis.gui.QgsRasterLayerProperties

Base classes

QgsLayerPropertiesDialog

Base class for “layer properties” dialogs, containing common utilities for handling functionality in these dialog.

QgsOptionsDialogBase

A base dialog for options and properties dialogs that offers vertical tabs. It handles saving/restoring of geometry, splitter and current tab states, switching vertical tabs between icon/text to icon-only modes (splitter collapsed to left), and connecting QDialogButtonBox’s accepted/rejected signals to dialog’s accept/reject slots

QDialog

QWidget

QObject

QPaintDevice

Methods

apply

createExpressionContext

initialize

openUrl

refocusDialog

rollback

saveDefaultStyle

Saves the default style when appropriate button is pressed

storeCurrentStyleForUndo

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 instance

  • parent (Optional[QWidget] = None) – the parent of this widget

  • fl – windows flag

  • a3 (Union[Qt.WindowFlags, Qt.WindowType] = QgsGuiUtils.ModalDialogFlags)

apply(self)[source]
createExpressionContext(self) QgsExpressionContext[source]
Return type:

QgsExpressionContext

initialize()
openUrl()
refocusDialog()
rollback(self)[source]
saveDefaultStyle(self)[source]

Saves the default style when appropriate button is pressed

Deprecated since version 3.40: Use saveStyleAsDefault() instead.

storeCurrentStyleForUndo()