This property holds when expanding is true QTabBar will expand the tabs to use the empty space.By default the value is true.This property was introduced in Qt 4.5.
#if QT_VERSION >= 0x040500 setExpanding(false);#endif