Subgroup: Projection
Class: QgsProjectionSelectionTreeWidget¶
-
class
qgis.gui.
QgsProjectionSelectionTreeWidget
(parent: QWidget = None)¶ Bases:
PyQt5.QtWidgets.QWidget
Constructor for QgsProjectionSelectionTreeWidget.
A widget for selecting a coordinate reference system from a tree.
This widget implements a tree view of projections, as seen in the QgsProjectionSelectionDialog dialog. In most cases it is more suitable to use the compact QgsProjectionSelectionWidget widget.
See also
See also
New in version 3.0: Methods
Signals
crsSelected
Emitted when a projection is selected in the widget. initialized
Notifies others that the widget is now fully initialized, including deferred selection of projection. projectionDoubleClicked
Emitted when a projection is double clicked in the list. Attributes
-
actionEvent
()¶
-
changeEvent
()¶
-
childEvent
()¶
-
closeEvent
()¶
-
connectNotify
()¶
-
contextMenuEvent
()¶
-
create
()¶
-
crs
(self) → QgsCoordinateReferenceSystem¶ Returns the CRS currently selected in the widget.
New in version 3.0.
See also
-
crsSelected
¶ Emitted when a projection is selected in the widget. [signal]
-
customEvent
()¶
-
destroy
()¶
-
disconnectNotify
()¶
-
dragEnterEvent
()¶
-
dragLeaveEvent
()¶
-
dragMoveEvent
()¶
-
dropEvent
()¶
-
enterEvent
()¶
-
event
()¶
-
focusInEvent
()¶
-
focusNextChild
()¶
-
focusNextPrevChild
()¶
-
focusOutEvent
()¶
-
focusPreviousChild
()¶
-
hasValidSelection
(self) → bool¶ Returns true if the current selection in the widget is a valid choice. Valid selections include any projection and also the “no/invalid projection” option (if setShowNoProjection() was called). Invalid selections are the group headers (such as “Geographic Coordinate Systems”
-
hideEvent
()¶
-
initPainter
()¶
-
initialized
¶ Notifies others that the widget is now fully initialized, including deferred selection of projection.
New in version 2.4: [signal]
-
inputMethodEvent
()¶
-
isSignalConnected
()¶
-
keyPressEvent
()¶
-
keyReleaseEvent
()¶
-
leaveEvent
()¶
-
metric
()¶
-
mouseDoubleClickEvent
()¶
-
mouseMoveEvent
()¶
-
mousePressEvent
()¶
-
mouseReleaseEvent
()¶
-
moveEvent
()¶
-
nativeEvent
()¶
-
paintEvent
()¶
-
previewRect
(self) → QgsRectangle¶ The initial “preview” rectangle for the bounds overview map.
New in version 3.0.
See also
-
projectionDoubleClicked
¶ Emitted when a projection is double clicked in the list.
New in version 2.14: [signal]
-
pushProjectionToFront
(self)¶ Marks the current selected projection for push to front of recent projections list.
-
receivers
()¶
-
resizeEvent
(self, event: QResizeEvent)¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setCrs
(self, crs: QgsCoordinateReferenceSystem)¶ Sets the initial
crs
to show within the dialog.New in version 3.0.
See also
-
setOgcWmsCrsFilter
(self, crsFilter: Iterable[str])¶ filters this widget by the given CRSs
Sets this widget to filter the available projections to those listed by the given Coordinate Reference Systems.
Parameters: crsFilter – a list of OGC Coordinate Reference Systems to filter the list of projections by. This is useful in (e.g.) WMS situations where you just want to offer what the WMS server can support.
Warning
This function’s behavior is undefined if it is called after the widget is shown.
-
setPreviewRect
(self, rect: QgsRectangle)¶ Sets the initial “preview” rectangle for the bounds overview map.
New in version 3.0.
See also
-
setShowBoundsMap
(self, show: bool)¶ Sets whether to show the bounnds preview map.
See also
New in version 3.0.
-
setShowNoProjection
(self, show: bool)¶ Sets whether a “no/invalid” projection option should be shown. If this option is selected, calling crs() will return an invalid
QgsCoordinateReferenceSystem
.See also
New in version 3.0.
-
showBoundsMap
(self) → bool¶ Returns whether the bounds preview map is shown.
New in version 3.0.
See also
-
showEvent
(self, event: QShowEvent)¶
-
showNoProjection
(self) → bool¶ Returns whether the “no/invalid” projection option is shown. If this option is selected, calling crs() will return an invalid
QgsCoordinateReferenceSystem
.New in version 3.0.
See also
-
tabletEvent
()¶
-
timerEvent
()¶
-
updateMicroFocus
()¶
-
wheelEvent
()¶
-