Class: QgsProfileIdentifyResults

Stores identify results generated by a QgsAbstractProfileResults object.

Added in version 3.26.

List of all members, including inherited members

Methods

layer

Returns the associated map layer.

results

Returns a list of custom attributes representing the identify results.

class qgis.core.QgsProfileIdentifyResults[source]

Bases: object

__init__(layer: QgsMapLayer | None = None, results: Iterable[dict[str, Any]] = [])

Constructor for QgsProfileIdentifyResult, with the associated map layer.

Parameters:
  • layer (Optional[QgsMapLayer] = None)

  • results (Iterable[dict[str, Any]] = [])

__init__(a0: QgsProfileIdentifyResults)
Parameters:

a0 (QgsProfileIdentifyResults)

layer(self) QgsMapLayer | None[source]

Returns the associated map layer.

Return type:

Optional[QgsMapLayer]

results(self) list[dict[str, Any]]

Returns a list of custom attributes representing the identify results.

The interpretation of these is dependent on the QgsAbstractProfileResults subclass which generated the results.

Return type:

list[dict[str, Any]]