aurora
14th February 2012, 05:56
I am using a tabwidget and adding tabs dynamically in runtime...
Each tab contains many widgets....
But if i close a tab, its memory is not releasing....how can i handle it?
code in adding tab
ui->tabWidget_unfiltered->addTab(filesTable,FileName);
aftr closing tab
ui->tabWidget_unfiltered->removeTab(index);
Here each tab contains a table widget....
And storing each those table in a hash table as
QHash<QString,QTableWidget*> StoredTables;
Hence when i delete that tab, i'm just removing this hash entry as..
StoredTables.remove(RmovedFilename);
but when i check in Task bar->memory(private eorking set) , the memory is not deallocating after closing the tab....
What should i do?
Each tab contains many widgets....
But if i close a tab, its memory is not releasing....how can i handle it?
code in adding tab
ui->tabWidget_unfiltered->addTab(filesTable,FileName);
aftr closing tab
ui->tabWidget_unfiltered->removeTab(index);
Here each tab contains a table widget....
And storing each those table in a hash table as
QHash<QString,QTableWidget*> StoredTables;
Hence when i delete that tab, i'm just removing this hash entry as..
StoredTables.remove(RmovedFilename);
but when i check in Task bar->memory(private eorking set) , the memory is not deallocating after closing the tab....
What should i do?