I have a context menu associated with a widget. The widget has a QTableView as a child. The context menu displays outside of the Table. In the contextMenuEvent I want to calculate if the mouse is over a row of data before I pop up the menu. I also need to set the current row of the table before I do the pop up.