I have a custom widget class which just draws a Rectangle of MaximumWidth and length of 30 pixels .Iwant to make it a DefaultcontextMenu.. and also I'm not able to implement the contextMenuEvent for this

I'm very new to this could anyone send me a snippet code for this


Thanks in Advance
Naveen