突然发现,原来不做第4步程序也能正常编译运行,而且点击之后居然能够正确执行槽函数!难道Qt Creator 2.2.1已经如此智能了吗……---------------------------------------------------------------------------我都是如下操作,但是总会有warning1.qt creator添加菜单action2.在.h中添加private slots声明void on_action_triggered(bool b);3.在.cpp实现on_action_triggered(bool b){}4.在.cpp添加connect(ui->action, SIGNAL(triggered(bool)), this, SLOT(on_action_triggered(bool b)));然后编译运行程序总是在控制台提示Object::connect: No such slot MainWindow::on_action_triggered(bool b)Object::connect: (sender name: 'action')Object::connect: (receiver name: 'MainWindow')但是运行又一切正常……我的操作哪里有问题吗?