if(lineEdit->text().isEmpty())//如果为空{ emit lineEditEmptySignal();//发射自定lineEdit为空的信号与QLabel控件关联即connect();}