How to stop QTabBar's tab from being too big
While developing MDEdit, I noticed the tabs are getting too large, about the half of the size of QTabBar they were placed in. I think this is because the parent QVBoxLayout stretches the tab bar, including the tabs in it.
The solution I found is quite easy: tabBar = new QTabBar(this); tabBar->setExpanding(false); ... layout->addWidget(tabBar); The tabs then have their minimum possible size while the tab bar still gets stretched.












