Quote Originally Posted by tonnot View Post
Thanks
So, If I use the *var = new ... it means that my object are going to live outside of the method where it was created?
Yes, and unless you free it, it will become what we call a memory leak (i.e. the kind of thing that should be avoided at all costs). Please note that Qt widget classes may be instantiated by providing a parent to the widget. So, unless you don't provide a parent, the widget object will be automatically freed when its parent is deleted.