The constructor starts
Code:
AddressBook::AddressBook(QWidget *parent)
: QWidget(parent), ui(new Ui::AddressBook)
{
ui->setupUi(this);
Anyway, I think it is kind of meaningless to see what QTCreator actually does.
The point is that there seems to be ne meaning for all of this, except if the example was taken from an older versiont of QT, which I believe is the case.
The whole point was that a basic object is created that is pointed by ui and we then can only play around with this. So we just link the pointer of this to the objects of the basic object pointed by ui.
If I don't allocate memory it seems to work fine.