Update scene after moving QGraphicsItem
I am moving a QGraphicsItem in a scene using item->setPos(), this works but, how do you update the scene to register the new position .
i am using a function:
Code:
if(picItem->boundingRect().contains(pos))
{
}
in a mouseover to show where the scene has the item registered.
now the scene beeps at the original position even though the item is visible at a new position, i need to tell the scene the item has moved so it will beep at the new position.
Re: Update scene after moving QGraphicsItem
did u reimplement itemChanged() in scene
QVariant QGraphicsItem::itemChange ( GraphicsItemChange change, const QVariant & value ) [virtual protected]