hi everyone,
I create a context menu for a dialog .It is working fine.But my problem is to restrict within the table view.
Qt Code:
  1. QMenu menu(this);
  2. menu.addAction(deleteAct);
  3. menu.exec(event->globalPos());
To copy to clipboard, switch view to plain text mode 

Here i am using globalpos() .but i dont know what to use to restrict it.

plz gvie some soln.