Class: QgsScaleVisibilityDialog¶
- class qgis.gui.QgsScaleVisibilityDialog¶
Bases:
PyQt5.QtWidgets.QDialog
A dialog allowing users to enter a scale visibility range.
QgsScaleVisibilityDialog(parent: QWidget = None, title: str = ‘’, mapCanvas:
QgsMapCanvas
= None) Constructor forQgsScaleVisibilityDialog
, with specified dialogtitle
. ThemapCanvas
argument can be used to associate the dialog with a map canvas, allowing use of the current map scale within the dialog.Methods
Returns
True
if scale based visibility 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.
- actionEvent(self, QActionEvent)¶
- changeEvent(self, QEvent)¶
- childEvent(self, QChildEvent)¶
- closeEvent(self, QCloseEvent)¶
- connectNotify(self, QMetaMethod)¶
- contextMenuEvent(self, QContextMenuEvent)¶
- create(self, window: sip.voidptr = 0, initializeWindow: bool = True, destroyOldWindow: bool = True)¶
- customEvent(self, QEvent)¶
- destroy(self, destroyWindow: bool = True, destroySubWindows: bool = True)¶
- disconnectNotify(self, QMetaMethod)¶
- dragEnterEvent(self, QDragEnterEvent)¶
- dragLeaveEvent(self, QDragLeaveEvent)¶
- dragMoveEvent(self, QDragMoveEvent)¶
- dropEvent(self, QDropEvent)¶
- enterEvent(self, QEvent)¶
- event(self, QEvent) bool ¶
- eventFilter(self, QObject, QEvent) bool ¶
- focusInEvent(self, QFocusEvent)¶
- focusNextChild(self) bool ¶
- focusNextPrevChild(self, bool) bool ¶
- focusOutEvent(self, QFocusEvent)¶
- focusPreviousChild(self) bool ¶
- hasScaleVisibility(self) bool ¶
Returns
True
if scale based visibility is enabled.- Return type
bool
- hideEvent(self, QHideEvent)¶
- initPainter(self, QPainter)¶
- inputMethodEvent(self, QInputMethodEvent)¶
- isSignalConnected(self, QMetaMethod) bool ¶
- keyPressEvent(self, QKeyEvent)¶
- keyReleaseEvent(self, QKeyEvent)¶
- leaveEvent(self, QEvent)¶
- 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
- Return type
float
- metric(self, QPaintDevice.PaintDeviceMetric) int ¶
- 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
- Return type
float
- mouseDoubleClickEvent(self, QMouseEvent)¶
- mouseMoveEvent(self, QMouseEvent)¶
- mousePressEvent(self, QMouseEvent)¶
- mouseReleaseEvent(self, QMouseEvent)¶
- moveEvent(self, QMoveEvent)¶
- nativeEvent(self, Union[QByteArray, bytes, bytearray], sip.voidptr) Tuple[bool, int] ¶
- paintEvent(self, QPaintEvent)¶
- receivers(self, PYQT_SIGNAL) int ¶
- resizeEvent(self, QResizeEvent)¶
- sender(self) QObject ¶
- senderSignalIndex(self) int ¶
- 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
- Parameters
scale (float) –
- 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
- Parameters
scale (float) –
- setScaleVisiblity(self, hasScaleVisibility: bool)¶
Set whether scale based visibility is enabled.
See also
- Parameters
hasScaleVisibility (bool) –
- showEvent(self, QShowEvent)¶
- tabletEvent(self, QTabletEvent)¶
- timerEvent(self, QTimerEvent)¶
- updateMicroFocus(self)¶
- wheelEvent(self, QWheelEvent)¶