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