[quote author="aurora" date="1329208881"]
code in adding tab
@
ui->tabWidget_unfiltered->addTab(filesTable,FileName);
@
and for closing tab
@
QWidget *tab=ui->tabWidget_unfiltered->widget(index);
ui->tabWidget_unfiltered->removeTab(index);
delete tab; // <--
@
[/quote]
The widget is deleted correctly.
Again, a non-shrinking working set does not prove a memory leak by any means. Your system library may or may not return the memory on delete, the operating system may or may not leave unused pages in the working set.
If you think you might have a memory leak use a dedicated tool, like valgrind, Purify or Visual Studio to detect the leak, not the Windows task manager (or any other similar tool, like top).
The source of your "memory leak" is the use of an improper tool to detect it.