Subgroup: Map

Class: QgsMapUnitScaleDialog

class qgis.gui.QgsMapUnitScaleDialog(parent: QWidget = None)

Bases: PyQt5.QtWidgets.QDialog

Constructor for QgsMapUnitScaleDialog.

Parameters:parent – parent widget

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.

actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
eventFilter()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
getMapUnitScale(self) → QgsMapUnitScale

Returns a QgsMapUnitScale representing the settings shown in the dialog.

hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
sender()
senderSignalIndex()
setMapCanvas(self, canvas: QgsMapCanvas)

Sets the map canvas associated with the dialog. This allows the dialog to retrieve the current map scale from the canvas.

Parameters:canvas – map canvas

New in version 2.12.

setMapUnitScale(self, scale: QgsMapUnitScale)

Updates the dialog to reflect the settings from the specified QgsMapUnitScale object.

Parameters:scale – map unit scale to show in dialog

See also

mapUnitScale()

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