PDA

View Full Version : QTextStream



WXNSNW
14th November 2008, 11:16
Hi,

How to force a QTextStream to point the EOF when its in the middle of file?

wysota
16th November 2008, 16:43
You can use QTextStream::seek() with QTextStream::device() to query for the device it operates on and QIODevice::size() to find its size. Be aware that this will only work for devices that are seekable! It might be easier to simply close the device behind the stream to obtain a similar effect.