QgsFieldProxyModel class
The QgsFieldProxyModel class provides an easy to use model to display the list of fields of a layer.
Contents
Public types
Constructors, destructors, conversion operators
- QgsFieldProxyModel(QObject* parent = nullptr) explicit
- QgsFieldProxModel creates a proxy model with a QgsFieldModel as source model.
Public functions
- auto filters() const -> const Filters&
- Returns the filters controlling displayed fields.
- auto setFilters(QgsFieldProxyModel::Filters filters) -> QgsFieldProxyModel*
- Set flags that affect how fields are filtered in the model.
- auto sourceFieldModel() -> QgsFieldModel*
- Returns the QgsFieldModel used in this QSortFilterProxyModel.
Enum documentation
Function documentation
QgsFieldProxyModel:: QgsFieldProxyModel(QObject* parent = nullptr) explicit
QgsFieldProxModel creates a proxy model with a QgsFieldModel as source model.
It can be used to filter the fields based on their types.
const Filters& QgsFieldProxyModel:: filters() const
Returns the filters controlling displayed fields.
QgsFieldProxyModel* QgsFieldProxyModel:: setFilters(QgsFieldProxyModel::Filters filters)
Set flags that affect how fields are filtered in the model.
| Parameters | |
|---|---|
| filters | are Filter flags |