How to make QGraphicsView Flat?
-
19-06-2021 - |
Question
How can I make QGraphicsView
look flat? It looks like this:
I don't want the outline to be shown. Thanks!
La solution
QGraphicsView
inherits from QFrame
. Use the setFrameStyle
method and the lineWidth
property to change the frame appearance.
Autres conseils
You can also use the stylesheet to customize the look (including the borders) of a QFrame, see the stylesheet doc.
To make your widget look flat just add this CSS : border: 0px
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow