Subgroup: Map

Class: QgsMapToolIdentifyFeature

class qgis.gui.QgsMapToolIdentifyFeature

Bases: qgis._gui.QgsMapToolIdentify

The QgsMapToolIdentifyFeature class is a map tool to identify a feature on a chosen layer. Once the map tool is enable, user can click on the map canvas to identify a feature. A signal will then be emitted.

Methods

action Return associated action with map tool or NULL if no action is associated
activate
blockSignals
button Return associated button with map tool or NULL if no button is associated
canvas returns pointer to the tool’s map canvas
canvasDoubleClickEvent Mouse double-click event for overriding.
canvasMoveEvent
canvasPressEvent
canvasReleaseEvent
childEvent
children
clean convenient method to clean members
connectNotify
customEvent
deactivate
deleteLater
disconnect
disconnectNotify
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
findChild findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject
findChildren findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject]
flags
formatChanged
gestureEvent gesture event for overriding. Default implementation does nothing.
identify
identifyLayer
identifyMenu return a pointer to the identify menu which will be used in layer selection mode
identifyRasterLayer
identifyVectorLayer
inherits
installEventFilter
isSignalConnected
isWidgetType
isWindowType
keyPressEvent
keyReleaseEvent Key event for overriding.
killTimer
metaObject
moveToThread
objectName
parent
property
pyqtConfigure Each keyword argument is either the name of a Qt property or a Qt signal.
receivers
removeEventFilter
searchRadiusMM Get search radius in mm.
searchRadiusMU Get search radius in map units for given context.
sender
senderSignalIndex
setAction Use this to associate a QAction to this maptool.
setButton Use this to associate a button to this maptool.
setCursor Set a user defined cursor
setLayer change the layer used by the map tool to identify
setObjectName
setParent
setProperty
signalsBlocked
startTimer
thread
timerEvent
toCanvasCoordinates
toLayerCoordinates
toMapCoordinates
toMapCoordinatesV2
toolName Emit map tool changed with the old tool
tr
wheelEvent Mouse wheel event for overriding.

Attributes

ActiveLayer
AllLayers
AllowZoomRect
DefaultQgsSetting
EditTool
LayerSelection
RasterLayer
TopDownAll
TopDownStopAtFirst
Transient
VectorLayer
activated signal emitted once the map tool is activated [signal]
changedRasterResults changedRasterResults(self, Iterable[QgsMapToolIdentify.IdentifyResult]) [signal]
deactivated signal emitted once the map tool is deactivated [signal]
destroyed destroyed(self, QObject = None) [signal]
featureIdentified featureIdentified(self, QgsFeature) [signal]
identifyMessage identifyMessage(self, str) [signal]
identifyProgress identifyProgress(self, int, int) [signal]
messageDiscarded emit signal to clear previous message [signal]
messageEmitted emit a message [signal]
objectNameChanged objectNameChanged(self, str) [signal]
staticMetaObject
canvasReleaseEvent(self, e: QgsMapMouseEvent)
childEvent()
connectNotify()
customEvent()
disconnectNotify()
featureIdentified

featureIdentified(self, QgsFeature) [signal] featureIdentified(self, int) [signal]

identify()
identifyLayer()
identifyRasterLayer()
identifyVectorLayer()
isSignalConnected()
keyPressEvent(self, e: QKeyEvent)
receivers()
sender()
senderSignalIndex()
setLayer(self, vl: QgsVectorLayer)

change the layer used by the map tool to identify

timerEvent()
toCanvasCoordinates()
toLayerCoordinates()
toMapCoordinates()
toMapCoordinatesV2()