Class: QgsMapHitTestTask

Executes a QgsMapHitTest in a background thread.

Added in version 3.32.

Class Hierarchy

Inheritance diagram of qgis.core.QgsMapHitTestTask

Base classes

QgsTask

Abstract base class for long running background tasks.

QObject

Methods

results

Returns the hit test results, which are a map of layer ID to visible symbol legend keys.

class qgis.core.QgsMapHitTestTask[source]

Bases: QgsTask

__init__(settings: QgsLayerTreeFilterSettings)

Constructor for QgsMapHitTestTask, using the specified filter settings.

Parameters:

settings (QgsLayerTreeFilterSettings)

results(self) Any

Returns the hit test results, which are a map of layer ID to visible symbol legend keys.

Return type:

Any