Hi, I want to read input from the user in text mode QT application and this doesn't stop the program to enter the name:

Qt Code:
  1. QString enteredName;
  2. QFile inputFile,outputFile;
  3. cout << "Enter the name you want to search for: ";
  4. inputFile.open(stdin,QIODevice::ReadOnly);
To copy to clipboard, switch view to plain text mode 

I didn't add the line where I want to write the contents into enteredName...how can I do that?