Class: QgsIconUtils

class qgis.core.QgsIconUtils

Bases: sip.wrapper

Contains utility functions for working with icons.

New in version 3.20:

Methods

iconDefaultLayer

Returns a default icon for layers, which aren't the standard raster/vector/.

iconForLayer

Returns the icon corresponding to a specified map layer.

iconForWkbType

Returns the icon for a vector layer whose geometry type is provided.

iconLine

Returns an icon representing line geometries.

iconMesh

Returns an icon representing mesh layers.

iconPoint

Returns an icon representing point geometries.

iconPointCloud

Returns an icon representing point cloud layers.

iconPolygon

Returns an icon representing polygon geometries.

iconRaster

Returns an icon representing raster layers.

iconTable

Returns an icon representing non-spatial layers (tables).

iconVectorTile

Returns an icon representing vector tile layers.

iconDefaultLayer() QIcon

Returns a default icon for layers, which aren’t the standard raster/vector/… types.

Return type

QIcon

iconForLayer(layer: QgsMapLayer) QIcon

Returns the icon corresponding to a specified map layer.

Parameters

layer (QgsMapLayer) –

Return type

QIcon

iconForWkbType(type: QgsWkbTypes.Type) QIcon

Returns the icon for a vector layer whose geometry type is provided.

Parameters

type (QgsWkbTypes.Type) –

Return type

QIcon

iconLine() QIcon

Returns an icon representing line geometries.

Return type

QIcon

iconMesh() QIcon

Returns an icon representing mesh layers.

Return type

QIcon

iconPoint() QIcon

Returns an icon representing point geometries.

Return type

QIcon

iconPointCloud() QIcon

Returns an icon representing point cloud layers.

Return type

QIcon

iconPolygon() QIcon

Returns an icon representing polygon geometries.

Return type

QIcon

iconRaster() QIcon

Returns an icon representing raster layers.

Return type

QIcon

iconTable() QIcon

Returns an icon representing non-spatial layers (tables).

Return type

QIcon

iconVectorTile() QIcon

Returns an icon representing vector tile layers.

Return type

QIcon