[Qt-interest] QFile seeking from SEEK_SET ? ( fseek like function )

Constantin Makshin cmakshin at gmail.com
Tue Sep 14 20:05:40 CEST 2010


Please re-read the documentation — nothing says it sets position relative to the current one. What has caused you to make that assumption?

On Tuesday 14 September 2010 07:01:39 Aaron Lewis wrote:
> 
> On 09/14/2010 10:42 AM, Malyushytsky, Alex wrote:
> > It helps to check base class documentation: bool QIODevice::seek (
> > qint64 pos )
> >
> 
> Thanks for quick reply ;-)
> 
> QFile *fp = new QFile();
> 
> Blabla ...
> 
> fp->seek( 7 - fp->pos() );
> 
> 
> Yep , it works for negative numbers , but was it supposed to be like
> that ?
> 
> Thanks.



More information about the Qt-interest-old mailing list