View Single Post
Posts: 124 | Thanked: 10 times | Joined on Jan 2007 @ Italy
#13
Originally Posted by gri View Post
Parent can be any class that inherits from QObject. QWidgets are inherited from QObject, so yes.
If you create a dialog, give all member pointer variables the dialog as parent and you don't have to care about their memory
With Qt the memory handling is a lot easier than with blank c++.
so in constructor method i've to define:

className(parameters, QObject parent);

am i right?