Unsolved Why QGraphicsItems dissapear once touching or approach viewport bounds?
-
I've got a problem. When graphics item cross, touch or sometimes just approach, to viewport bounds it dessapears. This happens when item is moved over scene or zooming view. How to stop this behavior?
-
Hi
Test with Diagram example and see if you can reproduce it.
https://doc.qt.io/qt-5/qtwidgets-graphicsview-diagramscene-example.htmlIf not, it means its in custom code and its not something we just guess.
It could be some of your overrides or other logic. Missing call to base class or
similar. :) -
I noticed that, problem is perhaps with items' boundingRect. Now, it returns mapped to scene rect(), but when it's not mapped, it works good.
-
Hi
Well maybe the boundingRect is in local coordinates and
not global as i assumed in the other post.
The samples does not map to scene.