为什么我会得到这个
Object::connect: No such slot Ide::on_action_Exit_triggered(index)
Object::connect: (sender name: 'actionClose_Project')
Object::connect: (receiver name: 'Ide')
当我尝试这个时:
connect(this->ui->actionClose_Project, SIGNAL(triggered()), this, SLOT(on_action_Exit_triggered(index)));
void Ide::on_action_Exit_triggered(int index)
{
qDebug()<<"test\n";
}
谢谢你。