I\'m using Qt and I have a QTabWidget setup in the Qt Designer Editor, you can see it in picture 1.
As you can see after Tab4 there is an empty space all t
On qt 4.5 there is a new property that control the tab widget rendering, called documentMode. Just call tabWidget->setDocumentMode(true)
and set the background color of the QTabBar using the stylesheets.
From Qt Documentation:
This property holds whether or not the tab widget is rendered in a mode suitable for document pages. This is the same as document mode on Mac OS X.
When this property is set the tab widget frame is not rendered. This mode is useful for showing document-type pages where the page covers most of the tab widget area.