A list model used for viewing and editing attributes in a Popup. More...
| Header | #include <Popup |
| Since | Esri |
| Inherits | QAbstract |
This class was introduced in Esri::ArcGISRuntime 100.0.
Public Types
| enum | Popup |
Properties
- count : const int
Public Functions
| virtual | ~ |
| QList | popup |
Reimplemented Public Functions
| virtual QVariant | data(const QModel |
Signals
| void | error |
Detailed Description
Obtain a PopupAttributeListModel from the PopupManager.
The model returns data for the following roles:
| Role | Type | Description | SublayerRoles |
|---|---|---|---|
| field | QString | The field name for the Popup | Popup |
| field | QVariant | The value for the Popup | Popup |
| popup | Popup | The Popup | Popup |
| decimal | int | The number of decimal places to display for numerical fields. | Popup |
| is | bool | If the thousands separator should be used. | Popup |
| is | bool | Whether the Popup | Popup |
| is | bool | Whether the Popup | Popup |
| is | bool | Whether the Popup | Popup |
| label | QString | The Popup | Popup |
| popup | Popup | The Popup | Popup |
| tooltip | QString | The tooltip for the Popup | Popup |
| formatted | QString | The formatted value for the Popup | Popup |
| field | Field | The Field | Popup |
| max | int | The maxmimum length for the Popup | Popup |
| is | bool | Whether the Popup | Popup |
| validation | QString | The validation error text if there is any. | Popup |
| range | QString | The range domain validation text if applicable. | Popup |
| use | QString | If the thousands separator should be used (since 100.1). | Popup |
| editable | bool | Whether the Popup | Popup |
| attribute | bool | Whether the Popup | Popup |
| nullable | bool | Whether the Popup | Popup |
| feature | bool | Whether the Popup | Popup |
Member Type Documentation
enum PopupAttributeListModel::PopupAttributeRoles
This enum specifies the custom roles which can be used with PopupAttributeListModel::data.
| Constant | Value | Description |
|---|---|---|
Esri | Qt | The field name for the Popup |
Esri | Qt | The value for the Popup |
Esri | Qt | The Popup |
Esri | Qt | The number of decimal places to display for numerical fields. |
Esri | Qt | If the thousands separator should be used. |
Esri | Qt | Whether the Popup |
Esri | Qt | Whether the Popup |
Esri | Qt | Whether the Popup |
Esri | Qt | The Popup |
Esri | Qt | The Popup |
Esri | Qt | The tooltip for the Popup |
Esri | Qt | The formatted value for the Popup |
Esri | Qt | The Field |
Esri | Qt | The maxmimum length for the Popup |
Esri | Qt | Whether the Popup |
Esri | Qt | The validation error text if there is any. |
Esri | Qt | The range domain validation text if applicable. |
Esri | Qt | If the thousands separator should be used (since 100.1). |
Esri | Qt | Whether the Popup |
Esri | Qt | Whether the Popup |
Esri | Qt | Whether the Popup |
Esri | Qt | Whether the Popup |
Property Documentation
count : const int
This property holds the number of attributes in this list model (read-only).
Member Function Documentation
[signal] void PopupAttributeListModel::errorOccurred (Esri::ArcGISRuntime::Error error)
Signal emitted when an error occurs.
- error - Details about the error.
[override virtual] PopupAttributeListModel::~PopupAttributeListModel ()
Destructor.
[override virtual] QVariant PopupAttributeListModel::data(const QModelIndex &index, int role = Qt::DisplayRole) const
Reimplements: QAbstractItemModel::data(const QModelIndex &index, int role) const.
Returns the data stored under the given role for the popup attribute referred to by the index.
- index. The index in the model for which to return data.
- role. The role for which to return data.
QList<Esri::ArcGISRuntime::PopupField *> PopupAttributeListModel::popupFields () const
Returns a list of PopupFields.