Connect: No such Slot QTreeView
问题 I have inherited a class MainTree from QTreeview maintree.cpp file void MainTree::LaunchTree() { //Tree launching connect(this, SIGNAL(customContextMenuRequested(const QPoint& )),this,SLOT(showCustomContextMenu(const QPoint&))); } void MainTree::showCustomContextMenu(const QPoint &pos) { //Add actions } But i get the following error QObject::connect: No such slot QTreeView::showCustomContextMenu(const QPoint&) I could not understand why, am i missing something ?? Definition of the class