Reputation: 628
Having an issue with QTabWidget in QT5.
Basically I have an app that whose main content area is a QTabWidget. On Ubuntu and Windows the tabs are aligned to the left. On OSX, however, the tabs start from the center of the tab widget. I've tried changing the alignment with the following:
QTabWidget { alignment: left; }
As well as
QTabWidget:tab-bar { alignment: left }
QTabBar { alignment: left; }
Is it possible to get left-aligned tabs on OSX in QT5?
Upvotes: 5
Views: 1683
Reputation: 366
For reference to anyone coming here from Google
QTabWidget::tab-bar {
left: 0;
}
will do the trick.
Upvotes: 4