Search code examples
qtqgraphicsviewqtstylesheetsqframe

How to make QGraphicsView Flat?


How can I make QGraphicsView look flat? It looks like this:

enter image description here

I don't want the outline to be shown. Thanks!


Solution

  • QGraphicsView inherits from QFrame. Use the setFrameStyle method and the lineWidth property to change the frame appearance.