QML to QML signal
-
I tried reading most the blogs and tried to receive signal from one QML to another QML
I have three QML files, first.qml second.qml third.qml
In main.qml I have stack view and pushing these qml on click of buttons,
I have used
Component{
id: first
First {}
}
to load my components.
Now, I want to emit a signal from second.qml and call the slot of first.qml.
can anyone help me how can I achieve same. -
I tried reading most the blogs and tried to receive signal from one QML to another QML
I have three QML files, first.qml second.qml third.qml
In main.qml I have stack view and pushing these qml on click of buttons,
I have used
Component{
id: first
First {}
}
to load my components.
Now, I want to emit a signal from second.qml and call the slot of first.qml.
can anyone help me how can I achieve same. -
@Gery Hi here is a possible solution
MainView { First{ id: first signal sig1() } Second{ id: second signal sig2() } Componen.onComplet: { second.sig2.connect( first.sig1 ) } } -
I tried reading most the blogs and tried to receive signal from one QML to another QML
I have three QML files, first.qml second.qml third.qml
In main.qml I have stack view and pushing these qml on click of buttons,
I have used
Component{
id: first
First {}
}
to load my components.
Now, I want to emit a signal from second.qml and call the slot of first.qml.
can anyone help me how can I achieve same.