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.





Reply With Quote
Bookmarks