Memory Leak Continued
by Dominik • 2007-11-22 • Developers
There was some confusion with regard to my last blog about leaking memory. Suppose the ui_mywidget.h files looks like this: class Ui_Widget { public: QGridLayout *gridLayout; QGroupBox *groupBox; QGridLayout *gridLayout1; QListWidget *listWidget; QSpacerItem *spacerItem; QPushButton *pushButton; void setupUi(QWidget *Widget); void retranslateUi(QWidget *Widget); }; Of course, those 6 QObject derived classes are deleted. But the sizeof(Ui_Widget) [...]
Read more →