QTabWidget change memory leak
Unsolved
General and Desktop
-
I use QTabWidget. Each tab is a container for some classes. Every class created in constructer.
MainWindow{ class1 = Class1(ui->tab1, ...); class2 = Class2(ui->tab2, ...); }
ui->tab1 and ui->tab2 work as constainer. I create some widgets in Class1 and Class2 and they use tab1 and tab2 as parent.
When I change QTabWidget current tab, there will memory leak.
What is the reason ? I do not create or do something. I just click the tab name.
-
There is no leak. How do you measure? Please provide a minimal, compileable example of the problem.