Hi, is it necessary to call delete when a qt application is closed? For example I created several widgets.
Are they automatically deleted when the closeEvent is executed?
or is it necessary to call the destructor everytime the app is closed?

Also, is there any effect in memory allocation when either of these forms are used?

QWidget myWidget;
QWidget *myWidget = new QWidget();