Hello. How i can detect intersection line shape with rect on qgraphicsscene? I know how to do it only with line boundingrect.
Line inherited from QGraphicsItem
Hello. How i can detect intersection line shape with rect on qgraphicsscene? I know how to do it only with line boundingrect.
Line inherited from QGraphicsItem
Not sure what you mean.
QGraphicsScene has not visual representation, and thus it cannot intersect with anything.
From the docs:
You can create a simple item to cover the all the size of the space you are interested in and make it the root parent of all the other objects in your scene.Note that QGraphicsScene has no visual appearance of its own; it only manages the items.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks