#include <QtGui/QApplication>#include "mainwindow.h"int main(int argc, char *argv[]){ QApplication a(argc, argv); MainWindow w; w.show(); return a.exec();}
==9227== LEAK SUMMARY:==9227== definitely lost: 1,952 bytes in 8 blocks==9227== indirectly lost: 7,500 bytes in 376 blocks==9227== possibly lost: 610,734 bytes in 4,113 blocks==9227== still reachable: 364,449 bytes in 5,234 blocks==9227== suppressed: 0 bytes in 0 blocks
Class A{ static Object * o;}//*.cpp:Object A::o = new Object();
Q_GLOBAL_STATIC(Object, o)