This Qt Article will help you understand better -the reference counting concept

http://doc.trolltech.com/qq/qq02-dat...ith-class.html