Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, March 2008
Possible bug with stylesheets and QTabWidget (?)


Message 1 in thread

Dear trolls,

I have a problem when applying a stylesheet to a QTabWidget. As soon as 
I add the QTabWidget::pane
part, a thin gray line appears on top of the _un_selected tabs. The gray 
color can not be changed, and
it is drawn over everything else. Here is the stylesheet:

            "QTabWidget::pane {"
                "border-top: 1px solid #FFFFFF;"
            "}"
            "QTabWidget::tab-bar {"
                "left: 0px;"
            "}"
            "QTabBar::tab {"
                "border: 0px solid #FFFFFF;"
                "border-top-left-radius: 3px;"
                "border-top-right-radius: 3px;"
                "min-width: 8ex;"
                "padding-top: 3px;"
                "padding-bottom: 3px;"
                "padding-left: 8px;"
                "padding-right: 8px;"
            "}"
            "QTabBar::tab:selected {"
                "background: qlineargradient(x1:0, y1:0, x2:0, y2:1,"
                    "stop: 0 #595959, stop: 1 #6F6F6F);"
                "color: white;"
            "}"
            "QTabBar::tab:!selected {"
                "background: qlineargradient(x1:0, y1:0, x2:0, y2:1,"
                    "stop: 0 #888888, stop: 1 #CCCCCC);"
                "margin-top: 2px;"
                "color: black;"
            "}"

And I joined a picture of the result. Is it a known feature ? Or a bug ?
Thanks !

Alex

-- 
 [ signature omitted ] 

PNG image