How do you set the model for the delegate(s)?
if you set your custom delegate to any kind of QML model view it should work out of the box with the attached property “modelData” to access your properties?
e.g:
Repeater {
delegate: foo.delegate // where foo is your c++ QObject with the delegate property
}
that’s just an example but you should be able to access the poperties of the delegate inside the repeater now (with modelData.xyz where xyz is a property in your delegate)
you can off course create your own view with an attached property like that or use a ListView or whatever has a model and delegate in the QtQuick components.
I hope that is what you want ^^
↧