Hi there.

In my program I`m using a Main Window which is a subclass of QWidget and from it, by pressing some buttons, I create new windows which are also subclasses of QWidget with parent set to 0 and which have the widget attribute Qt::WA_DeleteOnClose set.

The problem that I`m having is when monitoring the memory my application uses. Every time I open a new window inside the application, the memory usage rises but when I close it, it doesn't drop back. This repeats its self for every window I open and the memory stacks up to even 100mb VmSize at 7+1(the main window) windows opened. (VmRss also stacks up).

I`ve connected the destroyed signal for the windows and tried to see if it it gets called and it does; but what is there to be done if the memory keeps rising?

Any help?