Farrukh Arshad
Farrukh Arshad

Reputation: 1461

Remove border lines from QFrame & QTabWidget

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

Upvotes: 9

Views: 17328

Answers (3)

Habib Ur Rahman
Habib Ur Rahman

Reputation: 21

Just add tabwidget.setDocumentMode(True)

Upvotes: 2

Alia Ramli Ramli
Alia Ramli Ramli

Reputation: 425

using qt designer, click on the frame, go to property name stylesheet type border:0

Upvotes: 1

BrunoPT
BrunoPT

Reputation: 361

Try setting the QTabWidget Stylesheet to have 0 border.

So for instance:

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

Upvotes: 26

Related Questions