diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2009-05-11 10:35:53 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2009-05-11 10:35:53 (GMT) |
commit | a2ccdc36d0e80f7274ed0551c819bedcddc2f4cc (patch) | |
tree | 55a19156916f0668770edcec8a479609963d1779 /src/corelib/io/qtextstream.cpp | |
parent | 540092f4cc35238c258bb6422912d3eb18b26f33 (diff) | |
parent | 5299240db14579960358edeebfc72fcef905af13 (diff) | |
download | Qt-a2ccdc36d0e80f7274ed0551c819bedcddc2f4cc.zip Qt-a2ccdc36d0e80f7274ed0551c819bedcddc2f4cc.tar.gz Qt-a2ccdc36d0e80f7274ed0551c819bedcddc2f4cc.tar.bz2 |
Merge branch '4.5'
Diffstat (limited to 'src/corelib/io/qtextstream.cpp')
-rw-r--r-- | src/corelib/io/qtextstream.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/corelib/io/qtextstream.cpp b/src/corelib/io/qtextstream.cpp index f63d29e..612d7f7 100644 --- a/src/corelib/io/qtextstream.cpp +++ b/src/corelib/io/qtextstream.cpp @@ -67,9 +67,10 @@ static const int QTEXTSTREAM_BUFFERSIZE = 16384; \snippet doc/src/snippets/code/src_corelib_io_qtextstream.cpp 1 Note that you cannot use QTextStream::atEnd(), which returns true when you - have reached the end of the data stream, with stdin because as long as the - application is running, stdin has no end. - + have reached the end of the data stream, with stdin. The reason for this is + that as long as stdin doesn't give any input to the QTextStream, \c atEnd() + will return true even if the stdin is open and waiting for more characters. + Besides using QTextStream's constructors, you can also set the device or string QTextStream operates on by calling setDevice() or setString(). You can seek to a position by calling seek(), and |