QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
17 #ifndef QGSFIELDSITEM_H
18 #define QGSFIELDSITEM_H
21 #include "qgis_core.h"
51 const QString &connectionUri,
52 const QString &providerKey,
53 const QString &schema,
54 const QString &tableName );
59 SIP_PYOBJECT __repr__();
61 QString
str = QStringLiteral(
"<QgsFieldsItem: %1>" ).arg( sipCpp->path() );
62 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
68 QIcon
icon()
override;
73 QString schema()
const;
78 QString tableName()
const;
83 QString connectionUri()
const;
100 QString mConnectionUri;
101 std::unique_ptr<QgsAbstractDatabaseProviderConnection::TableProperty> mTableProperty;
128 SIP_PYOBJECT __repr__();
130 QString
str = QStringLiteral(
"<QgsFieldItem: %1>" ).arg( sipCpp->name() );
131 sipRes = PyUnicode_FromString(
str.toUtf8().constData() );
135 QIcon
icon()
override;
152 #endif // QGSFIELDSITEM_H
A layer field item, information about the connection URI, the schema and the table as well as the lay...
A collection of field items with some internal logic to retrieve the fields and a the vector layer in...
virtual bool equal(const QgsDataItem *other)
Returns true if this item is equal to another item (by testing item type and path).
The TableProperty class represents a database table or view.
Represents a vector layer which manages a vector based data sets.
Base class for all items in the model.
QgsField field() const
Returns the field definition.
virtual QVector< QgsDataItem * > createChildren()
Create children.
Encapsulate a field in an attribute table or data source.