I would like to check if I'm doing it correctly. Advises are welcome.

I have a set o widgets which I want to layout horizontally, as they are many and occupies lot of space I use a QScrollArea to accommodate them.

Then I put the QWidget which has the QScrollArea in another QWidget.

And finally, that last QWidget is inserted in a QTabWidget.

The problem I see is:

The tabWidget has a white background and the scrollAreaWidgetContents has a gray background. With the intention of solve this I tried ui->scrollAreaWidgetContents->setAttribute(Qt::WA_TranslucentBackground), but all the scrollArea contents get trashed when moving the scroll.