Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How not to draw out of scene bounds?
ofabricio last edited by
I'm new with Qt. Regarding the image below (paintbrush), I show you what I think it is the QGraphicsView and QGraphicsScene. As you can see the blue circle doesn't draw outside scene bounds. But that's not the default behavior of a QGraphicsScene, and I want my QGraphicsItem not to draw outside scene bounds. How can I achieve this?