Deleting objects from 2d View

Hi all,
I want to delete the objects from 2d view.
Anybody who can sort out my problem?

Rajesh Kishore's picture

I am able to erase it. I have to draw a line according to the movement of mouse and each time i am calling Eraseall() in Mouse move event,but i end up with run time error when i draw the line in mousemove event.
I am using Qt 4.2 and OCC 6.1.0
Any suggestion are really welcome