QTabWidget with setDocumentMode is more adapted as the QTabWidget in the settings are filling the whole view and we only need to draw a separator at the top.
After: