Hi,

I'm creating a form by:
Qt Code:
  1. FormPusty::FormPusty(QWidget *parent) : QMainWindow(parent)
  2. {
  3.  
  4. base = new QWidget();
  5. QGridLayout *layout = new QGridLayout(base);
  6. QTabWidget *TwNew = new QTabWidget();
  7. QWidget *page1 = new QWidget();
  8. TwNew->addTab(page1,QIcon::QIcon(":/new/prefix1/doc_stand.png"),"pierwsze");
  9.  
  10. layout->addWidget(TwNew,0,0,1,1);
  11. base->show();
  12. this->setCentralWidget(base);
  13. this->move(((QApplication::desktop()->width()-this->width())/2),((QApplication::desktop()->height()-this->height())/2));
  14.  
  15. }
To copy to clipboard, switch view to plain text mode 
and in application:
Qt Code:
  1. OFormPusty = new FormPusty();
  2. OFormPusty->show();
To copy to clipboard, switch view to plain text mode 

and I've discovered there is no free memory in my app :/ How to add a free memory, I've a several forms whith alocated almost 10Mb :/ when I'm closing a form memeory is still use :/
ofcourse I've :

Qt Code:
  1. FormPusty::~FormPusty(){
  2. qDebug()<<"ttt";
  3. delete base ;
  4. }
To copy to clipboard, switch view to plain text mode 

but is noting happend :/