|
ViewSolutions 1.0.100.30ae2aa
View solutions of qml for quasarapp projects
|
The BaseListModel class is the base class of all GUI list models. More...
#include <baselistmodel.h>


Public Member Functions | |
| BaseListModel (QObject *parent=nullptr) | |
| int | rowCount (const QModelIndex &) const override |
| QHash< int, QByteArray > | roleNames () const override |
| QVariant | data (const QModelIndex &index, int role) const override |
| Q_INVOKABLE void | setDataList (const QList< TYPE > &newData) |
| setDataList sets new date of model, and reset all model; | |
| Q_INVOKABLE const QList< TYPE > & | dateList () const |
Additional Inherited Members | |
| Signals inherited from ViewSolutions::__PrvateBaseListModel | |
| void | listDateChanged () |
| Protected Member Functions inherited from ViewSolutions::__PrvateBaseListModel | |
| __PrvateBaseListModel (QObject *parent=nullptr) | |
The BaseListModel class is the base class of all GUI list models.
A BaseListModel stores its items in a simple list and exposes them to QML as a list model. The list of all items is also available in QML through the listDate property (see the BASE_LIST_MODEL_DATA_PROPERTY macro).
| TYPE | - is main stored delegate model of all list items. |
Concepts and usage rules:
Example of a model based on the BaseListModel:
C++ usage:
QML usage (after the model was registered as context property):
Definition at line 86 of file baselistmodel.h.
|
inline |
|
inlineoverride |
Definition at line 104 of file baselistmodel.h.
|
inline |
Definition at line 166 of file baselistmodel.h.
|
inlineoverride |
Definition at line 98 of file baselistmodel.h.
|
inlineoverride |
Definition at line 94 of file baselistmodel.h.
|
inline |
setDataList sets new date of model, and reset all model;
| newData |
Definition at line 136 of file baselistmodel.h.
