I have class which inherits from QGraphicsLineItem, I did that in order to have its methods and events (I need to inherit from other class, so I can´t create directly a GraphicsItem)
When I create an object, I send the line coordinates. But when is created, it pos is always 0,0. If I create five differents objects with different line coordinates, they are displayed correctly in the scene but they're pos() always give me back 0,0.
On the other hand, when I drag and drop one of the object its pos is changed according to its starting 0,0 coordinate, but the line().pos() gives me back the starting coords.
When I think on it, both functions should act differently... "pos()" giving me back the scene position and "line" the scene position of the line (but it should be the same, or similar, to "pos").
do it has any explanation? or is normal because I'm not working with the item itself?
thanks!
Bookmarks