If you are familiar with c++ in general then you should go to the api.
It would help if you provided some of the code you tried so we could
see exactly what you doing wrong but if you go here
http://doc.trolltech.com/3.3/qlineedit.html
look at the SLOT setText( const QString & ). So since it's a SLOT you need
to emit a SIGNAL to set it. If this doesn't make sense then you should do as
xhi suggested and start with the trolltech tutorials. SIGNALS and SLOTS are
easy once you understand them.
I hope that helps.
Zack