Hierarchal or nested model properties are accessible in QML
bootchk last edited by
This is not a question, just a fact that might be useful.
Suppose you have an object with a property that is an object with its own properties (PyQt code):
@pyqtProperty(QString) # getter
self._person = Person()
@pyqtProperty(Person) # getter
Then if you expose an instance of that to QML, you can use dot notation (qualification) to access that structure:
import Clan 1.0
I also want to know whether Python dictionaries could be used in QML. I am supposing not, since dictionaries are not part of C++.