Index: sources/model/MListModel.h =================================================================== diff -u -rf433eeefae34530e7cc3dc4e5576e43729b236f2 -r56381aae237db191956aff493907cd1f0801216b --- sources/model/MListModel.h (.../MListModel.h) (revision f433eeefae34530e7cc3dc4e5576e43729b236f2) +++ sources/model/MListModel.h (.../MListModel.h) (revision 56381aae237db191956aff493907cd1f0801216b) @@ -34,6 +34,14 @@ public slots: QVariantMap get (int vRow ) const; // Exposed to QML + Q_INVOKABLE QStringList getRoleNames() const { + QStringList keys; + for (const auto &roleName : roleNames()) { + keys << QString(roleName); + } + return keys; + } + private: QList> _data; QHash _roleNames;