Hi all, I created a Qt Quick C++ & qml application using Qt 4.8.4.
I have code such as:
Where MainView inherits from QDeclarativeView
In my mainview.qml file I use a Loader to load various QML files depending on what the user selects from menus. How can I tell in C++ when the underlying QML structure changes? Is there a signal I can hook into?
I want to cache some look ups (* obj), so I don't have to do a findChild like below:
QDeclarativeItem obj = this->rootObject()->findChild<QDeclarativeItem>(item);
Then when a new file is loaded by the Loader I would then kill the cache.
Maybe there is a better approach.