Class: QgsFieldItem¶
A data item representing a single field from a layer.
Information about the connection URI, the schema and the table as well
as the layer instance the field belongs to can be retrieved from the
parent QgsFieldsItem object.
Added in version 3.16.
Class Hierarchy¶
Base classes¶
Base class for all items in the model. |
|
- class qgis.core.QgsFieldItem[source]¶
Bases:
QgsDataItem- __init__(parent: QgsDataItem | None, field: QgsField)
Constructor for QgsFieldItem, with the specified
parentitem andfield.Note
parent item must be a
QgsFieldsItem- Parameters:
parent (Optional[QgsDataItem])
field (QgsField)