Subgroup: other

Class: QgsMetadataWidget

class qgis.gui.QgsMetadataWidget(parent: QWidget, layer: QgsMapLayer = None)

Bases: PyQt5.QtWidgets.QWidget

Constructor for the wizard.

If layer is set, then this constructor automatically sets the widget’s metadata() to match the layer’s metadata..

See also

setMetadata()

A wizard to edit metadata on a map layer.

New in version 3.0: Methods

acceptMetadata Saves the metadata to the layer.
actionEvent
changeEvent
checkMetadata Check if values in the wizard are correct.
childEvent
closeEvent
connectNotify
contextMenuEvent
create
crsChanged If the CRS is updated.
customEvent
destroy
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
enterEvent
event
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPreviousChild
hideEvent
initPainter
inputMethodEvent
isSignalConnected
keyPressEvent
keyReleaseEvent
leaveEvent
metadata Returns a QgsLayerMetadata object representing the current state of the widget.
metric
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveEvent
nativeEvent
paintEvent
parseLanguages Returns a list of languages available by default in the wizard.
parseLicenses Returns a list of licences available by default in the wizard.
parseLinkTypes Returns a list of link types available by default in the wizard.
parseMimeTypes Returns a list of MIME types available by default in the wizard.
parseTypes Returns a list of types available by default in the wizard.
receivers
resizeEvent
saveMetadata Save all fields in a QgsLayerMetadata object.
sender
senderSignalIndex
setMapCanvas Sets a map canvas associated with the widget.
setMetadata Sets the metadata to display in the widget.
sharedPainter
showEvent
tabletEvent
timerEvent
updateMicroFocus
wheelEvent

Signals

Attributes

acceptMetadata(self)

Saves the metadata to the layer.

actionEvent()
changeEvent()
checkMetadata(self) → bool

Check if values in the wizard are correct.

See also

saveMetadata()

childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
crsChanged(self)

If the CRS is updated.

customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metadata(self) → QgsLayerMetadata

Returns a QgsLayerMetadata object representing the current state of the widget.

See also

saveMetadata()

metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
parseLanguages() → Dict[str, str]

Returns a list of languages available by default in the wizard.

parseLicenses() → List[str]

Returns a list of licences available by default in the wizard.

parseLinkTypes() → List[str]

Returns a list of link types available by default in the wizard.

See also

https()

parseMimeTypes() → List[str]

Returns a list of MIME types available by default in the wizard.

See also

https()

parseTypes() → Dict[str, str]

Returns a list of types available by default in the wizard.

receivers()
resizeEvent()
saveMetadata(self, layerMetadata: QgsLayerMetadata)

Save all fields in a QgsLayerMetadata object.

See also

metadata()

See also

acceptMetadata()

See also

checkMetadata()

sender()
senderSignalIndex()
setMapCanvas(self, canvas: QgsMapCanvas)

Sets a map canvas associated with the widget.

setMetadata(self, metadata: QgsLayerMetadata)

Sets the metadata to display in the widget.

This method can be called after constructing a QgsMetadataWidget in order to set the displayed metadata to custom, non-layer based metadata.

See also

metadata()

sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateMicroFocus()
wheelEvent()