Right click on the view, nothing happens, here's the code:

Qt Code:
  1. view = new QTableView();
  2. connect(view, SIGNAL(customContextMenuRequested ( const QPoint &)), this, SLOT(viewMenu(const QPoint &)));
  3.  
  4. void MainWindow::viewMenu(const QPoint & pos)
  5. {
  6. QMenu *viewMenu = new QMenu("Edit Log", this);
  7. viewMenu->setContextMenuPolicy(Qt::CustomContextMenu);
  8. viewMenu->addAction("Edit");
  9. viewMenu->popup(pos);
  10. }
To copy to clipboard, switch view to plain text mode 

viewMenu is declared as a slot.

so, what have I done wrong?