Qt: Styling QTabWidget
Posted
by Martin
on Stack Overflow
See other posts from Stack Overflow
or by Martin
Published on 2010-03-19T21:43:55Z
Indexed on
2010/03/20
15:11 UTC
Read the original article
Hit count: 255
qt
|stylesheet
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 the way to the right edge, in someway I need to fill that space with a color, like in picture 2. Or another solution would be that the tabs float out to cover the whole screen.
I use the following stylesheet right now:
QTabWidget::tab-bar {
}
QTabBar::tab {
background: gray;
color: white;
padding: 10px;
}
QTabBar::tab:selected {
background: lightgray;
}
Is there a way to set the background color of the QTabBar using Qt stylesheets? Or can I get the tabs floating out to the edge using Qt stylesheets?
Thanks!
© Stack Overflow or respective owner