项目要求是当lineEdit
中的内容发生改变时,激活find
按纽。但实际运行结果却不行,发现是自己的connect
语句写错了:
// connect ( lineEdit, SIGNAL ( textChanged ( QString & ) ), this, SLOT ( enableFindButton ( QString & ) ) ); /* 错误写法 */
connect ( lineEdit, SIGNAL ( textChanged ( const QString & ) ), this, SLOT ( enableFindButton ( const QString & ) ) );