PDA

View Full Version : QTabWidget: corner widget is not shown



dv_
18th March 2008, 15:54
Hi,
I have a rather weird problem. I start my application with an empty QTabWidget. However, corner widgets to the top of the tab widget aren't shown! Only when the tab widget has tabs they appear. This is quite bad, though, since one of these corner widgets is a button for creating new tabs. :)

Anybody knows how to solve this? Is there a way to force a tab widget to show the corner widgets, even if it has no tabs?

jpn
18th March 2008, 17:30
Try good old proxy style approach and make QStyle::subElementRect(QStyle::SE_TabWidgetTabBar) return something even when the tab bar is empty.