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
setStyleSheetfunction 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.
-
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
setStyleSheetfunction 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
QGraphicsSceneis not aQWidget, so there won't be any stylesheet.QGraphicsView, however, is aQWidget. Is that what you intended?