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

Malyushytsky, Alex alex at wai.com
Tue Sep 14 04:42:09 CEST 2010


It helps to check base class documentation:
bool QIODevice::seek ( qint64 pos )

Regards,
   Alex


-----Original Message-----
From: qt-interest-bounces at trolltech.com [mailto:qt-interest-bounces at trolltech.com] On Behalf Of Aaron Lewis
Sent: Monday, September 13, 2010 7:01 PM
To: QT Interest List
Subject: [Qt-interest] QFile seeking from SEEK_SET ? ( fseek like function )


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

Hi,
    How do i use QFile::seek from beginning of a file ?

    fp->seek ( 0 );
    fp->seek ( 7 );

    Should be combined to a single function , like fp->seek ( 7 ,
SEEK_SET );
    Do QFile has similar function ?

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

iEYEARECAAYFAkyO12oACgkQvf41sEptMqDs6QCfSMzCTddZuum3V2GDodck65HH
pcAAn0XqeoL3YyfYVP6does20Yz+FJWm
=e5tW
-----END PGP SIGNATURE-----

_______________________________________________
Qt-interest mailing list
Qt-interest at trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-interest


---------------------------------------------------------------------------------------------------
Weidlinger Associates, Inc. made the following annotations.

“This message and any attachments are solely for the intended recipient and may contain confidential or privileged information. If you are not the intended recipient, any disclosure, copying, use, or distribution of the information included in this message and any attachments is prohibited. If you have received this communication in error, please notify us by reply e-mail and immediately and permanently delete this message and any attachments. Thank you.”

“Please consider our environment before printing this email.”




More information about the Qt-interest-old mailing list