Class: QgsLayerPropertiesDialog¶
Base class for “layer properties” dialogs, containing common utilities for handling functionality in these dialogs.
Warning
This is exposed to SIP bindings for legacy reasons only, and is NOT to be considered as stable API.
Added in version 3.34.
Class Hierarchy¶
Base classes¶
A base dialog for options and properties dialogs that offers vertical tabs. |
|
Subclasses¶
A dialog for configuring mesh layer properties. |
|
A dialog for raster layer properties. |
|
Layer properties dialog for vector layers. |
|
Layer properties dialog for vector tile layers. |
- class qgis.gui.QgsLayerPropertiesDialog[source]¶
Bases:
QgsOptionsDialogBase- __init__(layer: QgsMapLayer | None, canvas: QgsMapCanvas | None, settingsKey: str | None, parent: QWidget | None = None, fl: Qt.WindowFlags | Qt.WindowType = Qt.WindowFlags(), settings: QgsSettings | None = None)
Constructor for QgsLayerPropertiesDialog.
- Parameters:
layer (Optional[QgsMapLayer]) – associated map layer
canvas (Optional[QgsMapCanvas]) – associated map canvas
settingsKey (Optional[str]) –
QgsSettingssubgroup key for saving/restore ui states, e.g. “VectorLayerProperties”.parent (Optional[QWidget] = None) – parent object (owner)
fl (Union[Qt.WindowFlags, Qt.WindowType] = Qt.WindowFlags()) – widget flags
settings (Optional[QgsSettings] = None) – custom
QgsSettingspointer
- virtual addPropertiesPageFactory(self, factory: QgsMapLayerConfigWidgetFactory | None)[source]¶
Adds properties page from a
factory.- Parameters:
factory (Optional[QgsMapLayerConfigWidgetFactory])
- saveDefaultStyle(self)[source]¶
Saves the default style when appropriate button is pressed
Added in version 3.30.
- setMetadataWidget(self, widget: QgsMetadataWidget | None, page: QWidget | None)[source]¶
Sets the metadata
widgetandpageassociated with the dialog.This must be called in order for the standard metadata loading/saving functionality to be available.
- Parameters:
widget (Optional[QgsMetadataWidget])
page (Optional[QWidget])