changing border of QTabWidget
-
Hello,
I simply would like to show/hide general borders of a QTabWidget. For instance : delete the grey line above the tabs here : .![alt text]
I've been looking on many topics on the forum and tried several style sheets, but none of them worked.
From what I understood, setting the following style sheet :
QTabWidget::pane
{
border-top: 3px solid rgb(0, 0, 0);
border-left: 3px solid rgb(0, 0, 0);
border-right: 3px solid rgb(0, 0, 0);
border-bottom: 3px solid rgb(0, 0, 0);
}
should solve my problem. But nothing changes.Anyone knows how to hide this grey line on the top, or set different king of borders for the panes?
Thank you for your help!
-
@EmmanuelC
This looks reasonable to me, so don't know why not working for you. Why don't you try out the actual example given in https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar and see how that looks for you compared to that photo? -
@EmmanuelC
Excellent! Hence why it's always an idea to start from an example they show you, check it works, and then compare against whatever you are actually doing :)https://doc.qt.io/qt-5/qtabwidget.html#documentMode-prop
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.
! :)