I have noticed in QT 5 examples there is no delete call for new widgets allocated.
Does this mean in this example
using namespace std;
#include <QApplication>
#include <QMainWindow>
#include <QTabWidget>
//This is to be used in many files later until the code exits
short * AA = new short[1000000];
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);
    MyTabDialog w;
    w.show();
    delete[] AA;  
    return app.exec();
}
the delete call is not needed or its place is wrong?
Thanks
 
     
    