用Eclipse+QT做开发时,信号和槽应该如何关联呢?
 我在头文件中声明了slots aaa();
 connect( Btn1, SIGNAL(clicked()), this, SLOT(aaa()) );
 但点击Btn1时报错
QObject::connect: No such slot QWidget::aaa()
QObject::connect:  (sender name:   'Btn1')
QObject::connect:  (receiver name: 'form1')
我在网上搜了一下,大概是因为在头文件中使用Q_OBJECT时,需要 moc,请问qt+Eclipse时如何添加 moc工具呢,请各位大侠帮忙!