Class: QgsNewMemoryLayerDialog

class qgis.gui.QgsNewMemoryLayerDialog(parent: QWidget = None, fl: Union[Qt.WindowFlags, Qt.WindowType] = QgsGuiUtils.ModalDialogFlags)

Bases: PyQt5.QtWidgets.QDialog

Methods

actionEvent
changeEvent
childEvent
closeEvent
connectNotify
contextMenuEvent
create
crs Returns the selected CRS for the new layer.
customEvent
destroy
disconnectNotify
dragEnterEvent
dragLeaveEvent
dragMoveEvent
dropEvent
enterEvent
event
eventFilter
focusInEvent
focusNextChild
focusNextPrevChild
focusOutEvent
focusPreviousChild
hideEvent
initPainter
inputMethodEvent
isSignalConnected
keyPressEvent
keyReleaseEvent
layerName Returns the layer name
leaveEvent
metric
mouseDoubleClickEvent
mouseMoveEvent
mousePressEvent
mouseReleaseEvent
moveEvent
nativeEvent
paintEvent
receivers
resizeEvent
runAndCreateLayer Runs the dialog and creates a new memory layer
selectedType Returns the selected geometry type
sender
senderSignalIndex
setCrs Sets the crs value for the new layer in the dialog.
sharedPainter
showEvent
tabletEvent
timerEvent
updateMicroFocus
wheelEvent

Signals

Attributes

actionEvent()
changeEvent()
childEvent()
closeEvent()
connectNotify()
contextMenuEvent()
create()
crs(self) → QgsCoordinateReferenceSystem

Returns the selected CRS for the new layer.

See also

setCrs()

customEvent()
destroy()
disconnectNotify()
dragEnterEvent()
dragLeaveEvent()
dragMoveEvent()
dropEvent()
enterEvent()
event()
eventFilter()
focusInEvent()
focusNextChild()
focusNextPrevChild()
focusOutEvent()
focusPreviousChild()
hideEvent()
initPainter()
inputMethodEvent()
isSignalConnected()
keyPressEvent()
keyReleaseEvent()
layerName(self) → str

Returns the layer name

leaveEvent()
metric()
mouseDoubleClickEvent()
mouseMoveEvent()
mousePressEvent()
mouseReleaseEvent()
moveEvent()
nativeEvent()
paintEvent()
receivers()
resizeEvent()
runAndCreateLayer(parent: QWidget = None, defaultCrs: QgsCoordinateReferenceSystem = QgsCoordinateReferenceSystem()) → QgsVectorLayer

Runs the dialog and creates a new memory layer

Parameters:
  • parent – parent widget
  • defaultCrs – default layer CRS to show in dialog
Returns:

new memory layer

selectedType(self) → QgsWkbTypes.Type

Returns the selected geometry type

sender()
senderSignalIndex()
setCrs(self, crs: QgsCoordinateReferenceSystem)

Sets the crs value for the new layer in the dialog.

See also

crs()

New in version 3.0.

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