Class: QgsScaleVisibilityDialog¶
-
class
qgis.gui.
QgsScaleVisibilityDialog
(parent: QWidget = None, title: str = '', mapCanvas: QgsMapCanvas = None)¶ Bases:
PyQt5.QtWidgets.QDialog
Constructor for QgsScaleVisibilityDialog, with specified dialog
title
. ThemapCanvas
argument can be used to associate the dialog with a map canvas, allowing use of the current map scale within the dialog.A dialog allowing users to enter a scale visibility range.
Enums
Methods
Returns true if scale based visibilty is enabled.
Returns the selected maximum scale, or 0 if maximum scale is not set.
Returns the selected minimum scale, or 0 if minimum scale is not set.
Set the maximum
scale
, or 0 to indicate the minimum is not set.Set the minimum
scale
, or 0 to indicate the minimum is not set.Set whether scale based visibility is enabled.
Signals
Attributes
-
actionEvent
()¶
-
changeEvent
()¶
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
customEvent
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
enterEvent
()¶
-
event
()¶
-
eventFilter
()¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hasScaleVisibility
(self) → bool¶ Returns true if scale based visibilty is enabled.
-
hideEvent
()¶
-
initPainter
()¶
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
maximumScale
(self) → float¶ Returns the selected maximum scale, or 0 if maximum scale is not set. The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
See also
See also
-
metric
()¶
-
minimumScale
(self) → float¶ Returns the selected minimum scale, or 0 if minimum scale is not set. The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.
See also
See also
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
receivers
()¶
-
resizeEvent
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setMaximumScale
(self, scale: float)¶ Set the maximum
scale
, or 0 to indicate the minimum is not set. The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.See also
See also
-
setMinimumScale
(self, scale: float)¶ Set the minimum
scale
, or 0 to indicate the minimum is not set. The scale value indicates the scale denominator, e.g. 1000.0 for a 1:1000 map.See also
See also
-
setScaleVisiblity
(self, hasScaleVisibility: bool)¶ Set whether scale based visibility is enabled.
See also
-
showEvent
()¶
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶
-