I am using a line edit on my gui...I need to get the values entered on the text field when i press go....thats not happening...everything goes fine if i hard code those values...please help!!

void MainWindow:n_pushButton_clicked()
{



QLineEdit lineEdit;
QLineEdit lineEdit_2;
QLineEdit lineEdit_3;



int n=lineEdit.text().toInt();
int rows=lineEdit_2.text().toInt();
int columns=lineEdit_3.text().toInt();
qDebug()<<n;



its showing n as '0'...I have not even initialised n..