QML QObject onDestroyed

1k views Asked by At

I can not connect to destroyed() signal emitted by QObject-derived class. Is it a bug or has to be this way?

Connections {
    target: myobj 
    onDestroyed: {
        console.log("Deleting object " + myobj)
    }
}

Main.qml:31:3: QML Connections: Cannot assign to non-existent property "onDestroyed"

0

There are 0 answers