Class: QgsMeshLayerProperties

Property sheet for a mesh map layer. Contains information, source and style tabs

Added in version 3.16.

QgsMeshLayerProperties showing the 'Information' page

QgsMeshLayerProperties showing the ‘Information’ page

QgsMeshLayerProperties showing the 'Source' page

QgsMeshLayerProperties showing the ‘Source’ page

Class Hierarchy

Inheritance diagram of qgis.gui.QgsMeshLayerProperties

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

initialize

loadStyle

Loads a saved style when appropriate button is pressed

openUrl

refocusDialog

rollback

saveDefaultStyle

Saves the default style when appropriate button is pressed

saveStyleAs

Saves a style when appriate button is pressed

storeCurrentStyleForUndo

syncToLayer

class qgis.gui.QgsMeshLayerProperties[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]) – Mesh map layer for which properties will be displayed

  • canvas (Optional[QgsMapCanvas]) – The map canvas

  • parent (Optional[QWidget] = None) – The parent widget

  • fl – Window flags

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

apply(self)[source]
initialize()
loadStyle(self)[source]

Loads a saved style when appropriate button is pressed

Deprecated since version 3.40: Use loadStyleFromFile() instead.

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.

saveStyleAs(self)[source]

Saves a style when appriate button is pressed

Deprecated since version 3.40: Use saveStyleToFile() instead.

storeCurrentStyleForUndo()
syncToLayer(self)[source]