Hi,
I have an item at scenePos x,y. But QGraphicsScene::itemAt(x, y) returns 0.
I think this should be impossible... but it happens :S
The item is a QGraphicsRectItem, maybe the border is too thin?
thanks!
Hi,
I have an item at scenePos x,y. But QGraphicsScene::itemAt(x, y) returns 0.
I think this should be impossible... but it happens :S
The item is a QGraphicsRectItem, maybe the border is too thin?
thanks!
Last edited by jano_alex_es; 23rd October 2009 at 12:08.
Hi,
I suggest you to check the x,y values in the itemAt function.
I was checking them that's why I was sure it wasn't able to find the item where it should do.
Anyway, it's solved. I wasn't doing "prepareGeometryChange", I was subclassing events I shouldn't subclass and where I shouldn't do it... and now it works fine
thanks!
Bookmarks