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.

iconForLayerType

Returns the default icon for the specified layer type.

iconForWkbType

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

iconGeometryCollection

Returns an icon representing geometry collections.

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

iconForLayerType(type: QgsMapLayerType) QIcon

Returns the default icon for the specified layer type.

New in version 3.22.

Parameters

type (QgsMapLayerType) –

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

iconGeometryCollection() QIcon

Returns an icon representing geometry collections.

New in version 3.22.

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