I use
Qt Code:
  1. QTextStream in(stdin, QIODevice::ReadOnly)
To copy to clipboard, switch view to plain text mode 
To read text from standard input. But I need getChar() function to block execution until user press enter so i need to open
Qt Code:
  1. file.open(stdin, QIODevice::ReadOnly);
To copy to clipboard, switch view to plain text mode 
Is this ok to call QFile::getChar when file is already open in QTextStream?