Użyj TextChanged QT CPP

// create a slot
private slots:
    void changeCaption();

// connect the slot to the textChanged signal
connect(edit, SIGNAL(textChanged(QString)), this, SLOT(changeCaption()));
Amused Albatross