1

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!

ymoreau
  • 3,402
  • 1
  • 22
  • 60
iTayb
  • 12,373
  • 24
  • 81
  • 135

2 Answers2

4

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

Mat
  • 202,337
  • 40
  • 393
  • 406
0

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

ymoreau
  • 3,402
  • 1
  • 22
  • 60