Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Why QGraphicsItems dissapear once touching or approach viewport bounds?
clostridium_difficile last edited by
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?
Test with Diagram example and see if you can reproduce it.
If 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
clostridium_difficile last edited by clostridium_difficile
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.
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.