I probably already know the answer to this, but I ask anyway;

Some examples in a book I am reading usually create like 4-5 layout managers like this:

QHBoxLayout *topLeftLayout = new QHBoxLayout;

This is done in the constructor of the widget and the pointer isnt stored anywhere for later reference. So basicly there is no way to do delete in the destructor. Is this common practice in QT or should I keep the pointer in the private section just so I can delete it in the destructor?