I attach an image with some very short code sections. I closely follow the Qt app note "Exposing Attributes of C++ Types to QML" at URL
http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html
The error message in the black section is standard.
No indication that the QML sees any C++.

In assigning the QML model (see image) I tried several variants including
model: vendorModel (referencing the model object) model: vendorModel.getVendorModel (i.e. referencing a getter function that returns a vendorModel) model: DownloadManager.vendorModel (different way of referencing the model object) model: DownloadManager.getVendorModel (different way of referencing the same getter function)

Which is an appropriate way to convince QML to see the Q_PROPERTY?
Kind regards,
willem

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to