Class: QgsMapUnitScaleDialog¶
A dialog which allows the user to choose the minimum and maximum scale of an object in map units and millimeters.
This dialog is designed to allow users to edit the properties of a
QgsMapUnitScale object.
See also
See also
Class Hierarchy¶
Base classes¶
Methods
Returns a |
|
Sets the map canvas associated with the dialog. |
|
Updates the dialog to reflect the settings from the specified |
- class qgis.gui.QgsMapUnitScaleDialog[source]¶
Bases:
QDialog- __init__(parent: QWidget | None = None)
Constructor for QgsMapUnitScaleDialog.
- Parameters:
parent (Optional[QWidget] = None) – parent widget
- getMapUnitScale(self) QgsMapUnitScale[source]¶
Returns a
QgsMapUnitScalerepresenting the settings shown in the dialog.See also
- Return type:
- setMapCanvas(self, canvas: QgsMapCanvas | None)[source]¶
Sets the map canvas associated with the dialog. This allows the dialog to retrieve the current map scale from the canvas.
- Parameters:
canvas (Optional[QgsMapCanvas]) – map canvas
- setMapUnitScale(self, scale: QgsMapUnitScale)[source]¶
Updates the dialog to reflect the settings from the specified
QgsMapUnitScaleobject.- Parameters:
scale (QgsMapUnitScale) – map unit scale to show in dialog
See also
mapUnitScale()