My QMainWindow is using QMdiArea. The viewMode of the QMdiArea is set to TabbedView. The Tab size of MdiArea takes entire width of the MdiArea:
If more tabs are added, they divide MdiArea width and consume entire width:
I understand that the MdiArea in tabbedView uses QTabBar, but I'm not able to find a way to set MdiArea's TabBar setExpanding property to false.
Any clue (Qt, PyQt or PySide) will be helpful.