The QObject Class; All but about a dozen of the Qt classes inherit from the base class QObject. This means that virtually every class in the Qt library contains the same basic set of methods. The constructor for this class can optionally accept the address of a parent object, and a character string that assigns the object a name:
QObject(QObject *parent = 0, const char *name = 0);