Skip to content Skip to sidebar Skip to footer

Qml Qobject Destroyed Before Being Able To Process A Signal

In QML, I'm using a C++ library that returns a QObject that does a process and emits a signal when is done. In javascript, I use the connect method of the signal being emitted (suc

Solution 1:

var requestResponse = apiClient.execute(reqInp);
function myFunction(response) 
{
        var requestResponseJSON = JSON.parse(response.responseAsJsonString());
        this.append(response.responseAsJsonString());
}
requestResponse.success.connect(myFunction);
requestResponse.destroyed.disconnect(myFunction)

Post a Comment for "Qml Qobject Destroyed Before Being Able To Process A Signal"