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?
For reference to anyone coming here from Google
QTabWidget::tab-bar {
left: 0;
}
will do the trick.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With