引用第2楼ppdayz于2011-08-06 15:25发表的 回 楼主(yinrenjieone) 的帖子 :
楼主少说了关键的东西。
QMetaObject::connectSlotsByName(proScriptAndAction);
void QMetaObject::connectSlotsByName ( QObject * object ) [static]
Searches recursively for all child objects of the given object, and connects matching signals from them to slots of object that follow the following form
void on_<object name>_<signal name>(<signal parameters>);.......