Thank you, you’re amazing :D
myGrid.model = myModel; was all I needed, and I don’t know why I didn’t think of trying that, it just makes sense when I saw it in your post.
And I actually was making my ListModels and GridViews as arrays, I just posted a very very simplified version of what I’m doing, and I thought of having separate QML files for my dynamic objects, but the way I’m making it this made the most sense, I need to be able to add variables, like so:
//Pretend this is inside a Qt.createQmlObject()
'//MyDynamicQmlStuff' + i + '//MyDynamicQMLStuffContinued'
The way I’m creating my app having these components dynamically created is crucial (at least in my head :P ), it’s not too difficult though, I just get stuck on these simple little things.
↧