If you want to set text in the lineEdit you should connect your signal to QLineEdit::setText
About implementing a signal and more about signals and slots, I recommend you to read http://qt-project.org/doc/qt-4.8/signalsandslots.html