I had made an user interface in which i have 1)lineEdit 2) pushButton.

I Want that after pressing push button data written by user in LineEdit would be cleared.

For this, i have construct this code but note working:-

QString a;
a=ui->lineEdit->text;
a.clear();


Please Reply!!
Thanks in advance!!