Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Can't find how to delete / hide QGraphicsScene borders
-
Hi,
I'm trying to hide QGraphicsScene borders but i can't find how to do it on the internet.
It appears like a widget but I can't apply the
setStyleSheet
function like that:my_scene = QtWidgets.QGRaphicsScene(0, 0, 200, 200, self) my_scene.setStyleSheet("border-style: None")
It returns me an error
QGraphicsScene object has no attribute 'setStyleSheet'
Do you have any ideas how i can reach my goal to hide the borders ?
Thank you in advance for your help.
-
@LucasB
QGraphicsScene
is not aQWidget
, so there won't be any stylesheet.QGraphicsView
, however, is aQWidget
. Is that what you intended?
-
@LucasB
QGraphicsScene
is not aQWidget
, so there won't be any stylesheet.QGraphicsView
, however, is aQWidget
. Is that what you intended?
-
This post is deleted!
-
@JonB Thank you for your answer !
Exactly i can't set style sheet on QGraphicsScene but in QGraphicsView it works.
In that way, i can hide the borders that exist by default in this widget.