Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QT5 Align OSX QTabWidget left

Tags:

c++

qt5

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?

like image 582
jduren Avatar asked Aug 02 '13 16:08

jduren


1 Answers

For reference to anyone coming here from Google

QTabWidget::tab-bar {
    left: 0; 
}

will do the trick.

like image 75
Lymphatus Avatar answered Oct 11 '22 22:10

Lymphatus