Hi,
I'm creating a form by:
{
TwNew
->addTab
(page1,
QIcon::QIcon(":/new/prefix1/doc_stand.png"),
"pierwsze");
layout->addWidget(TwNew,0,0,1,1);
base->show();
this->setCentralWidget(base);
this
->move
(((QApplication::desktop()->width
()-this
->width
())/2),
((QApplication::desktop()->height
()-this
->height
())/2));
}
FormPusty::FormPusty(QWidget *parent) : QMainWindow(parent)
{
base = new QWidget();
QGridLayout *layout = new QGridLayout(base);
QTabWidget *TwNew = new QTabWidget();
QWidget *page1 = new QWidget();
TwNew->addTab(page1,QIcon::QIcon(":/new/prefix1/doc_stand.png"),"pierwsze");
layout->addWidget(TwNew,0,0,1,1);
base->show();
this->setCentralWidget(base);
this->move(((QApplication::desktop()->width()-this->width())/2),((QApplication::desktop()->height()-this->height())/2));
}
To copy to clipboard, switch view to plain text mode
and in application:
OFormPusty = new FormPusty();
OFormPusty->show();
OFormPusty = new FormPusty();
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 :
FormPusty::~FormPusty(){
qDebug()<<"ttt";
delete base ;
}
FormPusty::~FormPusty(){
qDebug()<<"ttt";
delete base ;
}
To copy to clipboard, switch view to plain text mode
but is noting happend :/
Bookmarks