Last active
April 10, 2016 13:33
-
-
Save CODeRUS/52351b904b8f9310c0bfaf0bafbeb7cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DialogPage.qml | |
Page { | |
id: page | |
... | |
property var callback | |
... | |
// some place where you need callback: | |
page.callback("some", "very", "important", "params") | |
} | |
OtherPage.qml | |
Page { | |
... | |
function callbackFromDialog(param1, param2, param3 ...) { | |
// do something with params | |
} | |
// some place where you pushing page: | |
pageStack.push(Qt.resolvedUrl("DialogPage.qml"), {callback: callbackFromDialog }) | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment