Class: QgsCoordinateBoundsPreviewMapWidget

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

Bases: QgsMapCanvas

Constructor for QgsCoordinateBoundsPreviewMapWidget.

A widget for showing the bounds of a rectangular region on an interactive map.

New in version 3.8.1.

Parameters

parent

actionEvent()
canvasRect(self) → QgsRectangle

Returns the current canvas bounds rectangle shown in the map.

See also

setCanvasRect()

Return type

QgsRectangle

changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
drawBackground()
drawForeground()
drawFrame()
dropEvent()
enterEvent()
event()
eventFilter()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
initStyleOption()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveCanvasContents()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
scrollContentsBy()
sender()
senderSignalIndex()
setCanvasRect(self, rect: QgsRectangle)

Sets the canvas bounds rectangle for the bounds overview map.

Must be in EPSG:4326 coordinate reference system.

See also

canvasRect()

Parameters

rect (QgsRectangle) –

setPreviewRect(self, rect: QgsRectangle)

Sets the “preview” rectangle for the bounds overview map. Must be in EPSG:4326 coordinate reference system.

Parameters

rect (QgsRectangle) –

setViewportMargins()
setupViewport()
sharedPainter()
showEvent()
tabletEvent()
timerEvent()
updateCanvasItemPositions()
updateMicroFocus()
viewportEvent()
viewportMargins()
viewportSizeHint()
wheelEvent()