main.cpp:32: error: no matching function for call to 'QObject::connect(QPushButton**, const char [11], Cf2*, const char [8])'
这句是说没有相匹配的函数,即函数形参与实参不匹配
/usr/local/Trolltech/QtEmbedded-4.4.1/include/QtCore/qobject.h:198: note: candidates are: static bool QObject::connect(const QObject*, const char*, const QObject*, const char*, Qt::ConnectionType)
/usr/local/Trolltech/QtEmbedded-4.4.1/include/QtCore/qobject.h:303: note: bool QObject::connect(const QObject*, const char*, const char*, Qt::ConnectionType) const
这两句是编译器提供的它找到的函数声明
connect是QObject中的一个静态方法,一般的调用为connect(pobject1, SIGNAL(sig(arg)), pobject2, SLOT(slot(arg)));
pobject1, pobject2必须是QObject的指针(也可以是继承了QObject的子类)。