문제

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!

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top