我有一个 KMainWindow:
//file.h
class MainWindow: public KMainWindow {
public:
MainWindow(QWidget *parent = 0);
...
...
...
private slots:
void removeClick();
//file.cpp
MainWindow::MainWindow(QWidget *parent) :
KMainWindow(parent) {}
void MainWindow::removeClick()
{
std::cout << "Remove" << std::endl;
}
我可以正确编译它,但是当我执行时我得到了消息
Object::connect: No such slot KMainWindow::removeClick()
有谁能够帮助我?