In general, you can connect to signals emitted from a C ++ object using the Connections element :
Connections {
target: yourObjectComingFromCpp
onSomeSignal: console.log("Something")
}
or in Javascript by calling the function connectin the corresponding property of the JS-mapped object:
yourObjectComingFromCpp.someSignal.connect( );
However : this does not work for specific signals QObject::destroyedthat are forcibly blacklisted and are never available in QML ( source ).
, , QML, , QObject, , .