[SailfishDevel] how to find (QML) objects other than rootObject

Wim de Vries wsvries at xs4all.nl
Mon May 13 13:24:07 UTC 2013


Hi,
I am setting up the default Sailfish ("Hello sailors" app) project with 
all kinds of QML-C++ communication.
After
object = view->rootObject("main.qml");
I get the main.qml object (created via QDeclarativeView's setSource() ).
But how can I get the other QML objects (e.g. the SecondPage.qml, 
Coverpage.qml)?
findChild() only finds childs in main.qml (the one specified by 
setSource()).
Thanks.



More information about the Devel mailing list