QWidget internally having a garbage collector .so no need to destruct as the base widget will automatically clean its child and child's children recursivly ..
if u feel uncomfortable of not setting any widget as a parent to the base widget use QSharedPointer to declare that widget ..
Bookmarks