Pregunta

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!

¿Fue útil?

Solución

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

Otros consejos

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

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top