You cannot put variable names but just types inside SIGNAL() and SLOT() macros and there is no such signal as QWidget::customContextMenuRequested(QPoint*). It's a reference, not a pointer.
So it should be:
connect(ui.tableOptimizationVariables, SIGNAL(customContextMenuRequested(const QPoint&)), SLOT(ProvideContexMenu(const QPoint&)));
connect(ui.tableOptimizationVariables, SIGNAL(customContextMenuRequested(const QPoint&)), SLOT(ProvideContexMenu(const QPoint&)));
To copy to clipboard, switch view to plain text mode
Also, did you switch the context menu policy to Qt::CustomContextMenu?
Bookmarks