Problem solved. I changed what I was getting with my Q_INVOKABLE method inside of the QML document.
Instead of doing this for my ListView delegate:
ListView {
.
.
.
model: dataModel.size
delegate: Component {
Text{
text: dataModel.getTextBodyAt(index)
}
}
}
I'm now doing this:
ListView {
.
.
.
model: dataModel.size
delegate: Component {
Text{
text: dataModel.getModuleAt(index).TextBody
}
}
}
So in essence, instead of getting DataModule's property using a getTextBodyAt(i) method from DataModel, I used getDataModuleAt(i), which gave me direct access to that member's property.
Hopefully this helps others as much as it helped me.