8

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

Mailerdaimon
  • 6,003
  • 3
  • 35
  • 46
Farrukh Arshad
  • 1,391
  • 2
  • 16
  • 26

3 Answers3

25

Try setting the QTabWidget Stylesheet to have 0 border.

So for instance:

tabwidget.setStyleSheet("QTabWidget::pane { border: 0; }");
BrunoPT
  • 351
  • 3
  • 5
1

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

Alia Ramli Ramli
  • 405
  • 6
  • 18
  • 2
    Generally, answers are much more helpful if they include an explanation of what the code is intended to do, and why that solves the problem without introducing others – Bhavesh Odedra Mar 22 '16 at 07:18
0

Just add tabwidget.setDocumentMode(True)