The engine has the (undocumented) concept of finalizer callbacks. They are conceptually similar to what is possible with QQmlParserStatus.
They are mostly used in the animation system. As we don't really want to implement support for them in the compiler, we should try to convert all code to QQmlParserStatus. That would also allow us to simplify the engine code.