Application is getting closed while emitting signal in QML file
Unsolved
General and Desktop
-
I am using Qt 6.5.3 version
I have defined a signal in singleton QML file (XYZ.qml) as,
signal sendData() (in qmldir file created name as singleton moon 1.0 XYZ.qml)and I have emitting signal in ABC.qml as
moon.sendData(), when button is clicked and connecting this signal in component.oncompleted as
Component.onCompleted:
{
moon.sendData.connect(receiveData)
}created a slot in same ABC.qml as
function receiveData()
{
console.log("Received Signal")
}Signal is emitted when button is clicked in ABC.qml. But as when button is clicked application is getting closed.