Remove border lines from QFrame & QTabWidget

Farrukh Arshad picture Farrukh Arshad · Mar 23, 2013 · Viewed 10.5k times · Source

Please have a look at the attached image to understand the problem. In the image you can see, how can I remove the border lines or set their color to the QDialog color. Thanks.

Image showing lines

Answer

BrunoPT picture BrunoPT · May 27, 2013

Try setting the QTabWidget Stylesheet to have 0 border.

So for instance:

tabwidget.setStyleSheet("QTabWidget::pane { border: 0; }");