📅  最后修改于: 2022-03-11 14:44:49.530000             🧑  作者: Mango
// create a slot
private slots:
void changeCaption();
// connect the slot to the textChanged signal
connect(edit, SIGNAL(textChanged(QString)), this, SLOT(changeCaption()));