I have a custom QTabWidget which holds a custom QTabBar. I want to expand the area of the QTabBar (the red area) all the way to the right side of the window without enlarging the tabs themselves.
I have already tried settings the QTabBar's horizontal size policy to QSizePolicy::Ignored or QSizePolicy::Expanding, but these do nothing. It seems like the QTabBar is being constrained by the QTabWidget, but I don't know why or how to work around this.
edit:
I want the tab bar to take up the green area in addition to the red area. I am trying to implement drag&drop tabs - I need the QTabBar to take up all of the horizontal space so tabs can be dragged at the end of it.
Currently, my custom TabBar is just a standard QTabBar with the drag&drop events caught.