sattu
10th January 2011, 06:24
hi everyone,
I create a context menu for a dialog .It is working fine.But my problem is to restrict within the table view.
QMenu menu(this);
menu.addAction(deleteAct);
menu.exec(event->globalPos());
Here i am using globalpos() .but i dont know what to use to restrict it.
plz gvie some soln.
I create a context menu for a dialog .It is working fine.But my problem is to restrict within the table view.
QMenu menu(this);
menu.addAction(deleteAct);
menu.exec(event->globalPos());
Here i am using globalpos() .but i dont know what to use to restrict it.
plz gvie some soln.