A list model used for viewing and editing attributes in a Popup. More...
| Header | #include <Popup |
| Since | Esri |
| Inherits | Q |
| Status | Deprecated |
This class is deprecated. We strongly advise against using it in new code.
Properties
- count : const int
Public Functions
| virtual | ~ |
| Q | popup |
Reimplemented Public Functions
| virtual Q | data(const Q |
Signals
| void | error |
Detailed Description
Obtain a PopupAttributeListModel from the PopupManager.
The model returns data for the following roles:
| Role | Type | Description | SublayerRoles |
|---|---|---|---|
| field | Q | The field name for the Popup | Popup |
| field | Q | 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 | Q | The Popup | Popup |
| popup | Popup | The Popup | Popup |
| tooltip | Q | The tooltip for the Popup | Popup |
| formatted | Q | 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 | Q | The validation error text if there is any. | Popup |
| range | Q | The range domain validation text if applicable. | Popup |
| use | Q | 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 |
Property Documentation
[read-only] count : const int
This property holds the number of attributes in this list model (read-only).
Member Function Documentation
[override virtual noexcept] 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.
[signal] void PopupAttributeListModel::errorOccurred (const Esri::ArcGISRuntime::Error &error)
Signal emitted when an error occurs.
- error - Details about the error.
QList <Esri::ArcGISRuntime::PopupField *> PopupAttributeListModel::popupFields () const
Returns a list of PopupFields.