dawwin
19th March 2011, 09:47
I use
QTextStream in(stdin, QIODevice::ReadOnly)
To read text from standard input. But I need getChar() function to block execution until user press enter so i need to open
file.open(stdin, QIODevice::ReadOnly);
Is this ok to call QFile::getChar when file is already open in QTextStream?
QTextStream in(stdin, QIODevice::ReadOnly)
To read text from standard input. But I need getChar() function to block execution until user press enter so i need to open
file.open(stdin, QIODevice::ReadOnly);
Is this ok to call QFile::getChar when file is already open in QTextStream?