def METHOD_NAME(self, pos):
    col = self.columnAt(pos.x())
    row = self.rowAt(pos.y())
    if col < self.model().columnCount() and row < self.model().rowCount() - 1:  # last row has buttons
        menu = QMenu(parent=self)
        removeLanesAction = QAction("Remove", menu)
        menu.addAction(removeLanesAction)
        globalPos = self.viewport().mapToGlobal(pos)
        selection = menu.exec_(globalPos)
        if selection is removeLanesAction:
            self.removeLanesRequested.emit(self._selectedLanes)