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

Aaron Lewis aaron.lewis1989 at gmail.com
Tue Sep 21 09:34:01 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/16/2010 03:18 AM, Constantin Makshin wrote:
> Yes, the documentation may be a bit confusing. However, QFile::seek()
> has the same behavior as QIODevice::seek(); here is a line from the
> QFile::seek() function code:
>
> if (!d->fileEngine->seek(off) || !QIODevice::seek(off)) {
>
> Also, "offset" doesn't mean the position is relative to the current
> one. Offset can be relative to anything, including the beginning of
> the file. :)

I've double checked my code , this problem comes from wrong data inputs.

Thanks for all your help ;-)



- -- 
Best Regards,
Aaron Lewis - PGP: 0x4A6D32A0
FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0
irc: A4R0NL3WI5 on freenode
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyYX+kACgkQvf41sEptMqBFOwCdE1cm25IiQ3dIbcnF6TioimiP
L+oAn3LjMrH5YusXloU6RNtDZYnC9pff
=lHT9
-----END PGP SIGNATURE-----

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100921/f64ff5cb/attachment.html 


More information about the Qt-interest-old mailing list