[Interest] QFile::size() and QTextStream::pos()

william.crocker at analog.com william.crocker at analog.com
Thu Oct 29 23:09:38 CET 2015


On 10/29/2015 05:05 PM, Thiago Macieira wrote:
> On Thursday 29 October 2015 21:49:40 Igor Mironchik wrote:
>> On 29.10.2015 06:51, Thiago Macieira wrote:
>>> On Thursday 29 October 2015 05:51:36 Igor Mironchik wrote:
>>>> P.S. Why QTextStream doesn't have something like get(), peek(), unget(),
>>>> putback()?
>>>
>>> Explain what you would want those functions to do.
>>
>> The same like in std::istream, for example...
>

Just add your own wrapper around QTextStream that includes a
put back buffer for efficient implementation of peek, unget etc.

Bill



More information about the Interest mailing list