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

Aaron Lewis aaron.lewis1989 at gmail.com
Tue Sep 14 05:01:39 CEST 2010


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

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.


- -- 
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/

iEYEARECAAYFAkyO5ZMACgkQvf41sEptMqDKvACfXA8DXuixGtOpAYJJekZPP+/R
4j0AmwWCCH+687FmZBDUuN0jhSBngQkO
=Ubzs
-----END PGP SIGNATURE-----

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


More information about the Qt-interest-old mailing list