If all the tabs contain the same widgets (and they certainly seem to from your code), then you could create another ui file with your widgets, and then either:

- subclass QWidget using Designers promotion feature and then use the same object for each tab (designer way)
- create 8 copies of the object using 'new' and manually add the tabs using tabWidget->addTab

Either way needs a lot less code than what you have.