Connection between two Pages in SwipeView
Unsolved
QML and Qt Quick
-
main.qml
ApplicationWindow {
visible: trueSwipeView { id: swipeViewId currentIndex: 0 SettingsForm { onLoopFinished: ResultForm.createList() } ResultForm { } }
SettingsForm.qml
Page {
id: settingsId
padding: 10signal loopFinished
}
ResultForm.qml
Page {
id: listIdfunction createList()
{
console.log("ResultForm")
}My question is. How can I define a connection between Settingsform.qml and ResultForm.qml with signal loopFinished and slot createList in main.qml
I've got Error
qrc:/main.qml:21: TypeError: Property 'createList' of object [object Object] is not a function -
SettingsForm { onLoopFinished: resultFormId.createList() } ResultForm { id: resultFormId }
-
Thanks that works