Class: QgsIconUtils¶
- class qgis.core.QgsIconUtils¶
Bases:
sip.wrapper
Contains utility functions for working with icons.
New in version 3.20:
Methods
Returns a default icon for layers, which aren't the standard raster/vector/.
Returns the icon corresponding to a specified map
layer
.Returns the default icon for the specified layer
type
.Returns the icon for a vector layer whose geometry
type
is provided.Returns an icon representing geometry collections.
Returns an icon representing line geometries.
Returns an icon representing mesh layers.
Returns an icon representing point geometries.
Returns an icon representing point cloud layers.
Returns an icon representing polygon geometries.
Returns an icon representing raster layers.
Returns an icon representing non-spatial layers (tables).
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