Qt program for object lent