[SailfishDevel] Connect accepted signal from a dynamically-loaded dialog to the previous page's method?
Stockona
stockona at ovi.com
Thu Oct 3 04:47:19 UTC 2013
I have been trying to get this working to no avail. My code is like this:
Page1.qml
function update() {
...
}
PullDownMenu{
MenuItem{ onClicked:{
vardialog=pageStack.push(Qt.resolvedUrl("Dialog1.qml"));
//Not working. Dialogcannotseeparent'sproperties?
dialog.accepted.connect(update());
}
}
}
What is the right way to connect the accepted signal in the dialog to the update function in the Page1 caller?
Thanks a lot!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131002/4bd689f3/attachment.html>
More information about the Devel
mailing list