Possible Duplicate:
Memory management in Qt?
I have been learning Qt and there was a discussion if the pointers to Q objects such as QLabel should be deleted. Does Qt have automatic memory management for pointers to Qt objects or must they be deleted manually?
ex)
#include <QApplication>
#include <QLabel>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QLabel *label = new QLabel("Im Tough.");
label->show();
int result = app.exec();
//would this be necessary or would QT handle this automatically?
delete label;
return result;
}