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);
ui->tabWidget_unfiltered->addTab(filesTable,FileName);
To copy to clipboard, switch view to plain text mode
aftr closing tab
ui->tabWidget_unfiltered->removeTab(index);
ui->tabWidget_unfiltered->removeTab(index);
To copy to clipboard, switch view to plain text mode
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);
StoredTables.remove(RmovedFilename);
To copy to clipboard, switch view to plain text mode
but when i check in Task bar->memory(private eorking set) , the memory is not deallocating after closing the tab....
What should i do?
Bookmarks