when setting the item position,,, why cant u set it like this..
say scenePos = mouse position in scene.
itemPos = scenePos.adjusted(-item.width/2 , -item.height/2);
u can manipulate the itemposition in this way. seems u are just setting the position of item at scene position of mouse click.
dont forget to check the boundary lies in scene or not
Hope it helps![]()





Reply With Quote
Bookmarks