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/.

iconForGeometryType

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

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).

iconTiledScene

Returns an icon representing tiled scene layers.

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

iconForGeometryType(typeGroup: Qgis.GeometryType) QIcon

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

New in version 3.28.

Parameters:

typeGroup (Qgis.GeometryType) –

Return type:

QIcon

iconForLayer(layer: QgsMapLayer) QIcon

Returns the icon corresponding to a specified map layer.

Parameters:

layer (QgsMapLayer) –

Return type:

QIcon

iconForLayerType(type: Qgis.LayerType) QIcon

Returns the default icon for the specified layer type.

New in version 3.22.

Parameters:

type (Qgis.LayerType) –

Return type:

QIcon

iconForWkbType(type: Qgis.WkbType) QIcon

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

Parameters:

type (Qgis.WkbType) –

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

iconTiledScene() QIcon

Returns an icon representing tiled scene layers.

New in version 3.34.

Return type:

QIcon

iconVectorTile() QIcon

Returns an icon representing vector tile layers.

Return type:

QIcon