Remove border lines from QFrame & QTabWidget
Asked Answered
C

3

9

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

Cerussite answered 23/3, 2013 at 10:42 Comment(1)
Would be quite nice if anybody could anser this not using stylesheets.Engen
H
26

Try setting the QTabWidget Stylesheet to have 0 border.

So for instance:

tabwidget.setStyleSheet("QTabWidget::pane { border: 0; }");
Homosporous answered 27/5, 2013 at 16:53 Comment(1)
Must have did an hour of different settings with no results. Thank you!!Chagall
J
2

Just add tabwidget.setDocumentMode(True)

Jocose answered 7/4, 2023 at 12:39 Comment(0)
B
1

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

Bathos answered 22/3, 2016 at 5:41 Comment(1)
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 othersAgram

© 2022 - 2024 — McMap. All rights reserved.