i am 100% sure the QtFunction will have to save the obj somewhere because QtFunction is a constrcutor.
MyFunction will invoke QtFunction, and that is where i was confused, if i declare it ref or non ref.
QtFunction will save a copy of the object passed. As such, even if your own object no longer exists, the copy, being separate, can still exist.