import Qt 4.7 QtObject { onDestroyed: print("Hello World!") }