Nah..i din.
Now trying it by
//sceneX and sceneY are the top-left co-ordinates of my scene and my rectangles //(that i want to remove) has the top-left cornor same as scene rectangle.
scene->removeItem(scene->itemAt(sceneX+50,sceneY+50));
delete scene->itemAt(sceneX+50,sceneY+50);
//sceneX and sceneY are the top-left co-ordinates of my scene and my rectangles //(that i want to remove) has the top-left cornor same as scene rectangle.
scene->removeItem(scene->itemAt(sceneX+50,sceneY+50));
delete scene->itemAt(sceneX+50,sceneY+50);
To copy to clipboard, switch view to plain text mode
This sometime removes the item but sometimes when i run my program again without making any changes in my code, that rectangle appear on top of other newly designed shapes
Bookmarks