Ok, I was using a single ui file with all the tab pages designed, now I created widgets for tab pages and and accessing the instance of those classes from MainWindow.