You don't need inheritance for this. These UI files are just widgets. So of course you can do this. You should have a main class which will have a tab widget and then just add your page1, page2, etc in main tab widget. What you need is composition here in my opinion.
What you need to do is create a separate class derived from QWidget
which will contain an object of your generated UI form. You need to call setupUI()
of that generated form in your new class with this
as parameter.