QByteArray bytes;...QBuffer buffer( &bytes );buffer.open( QIODevice::ReadOnly );...QDataStream ds( &buffer );ds.seek( somePosition );qint64 someValue;ds >> someValue; // reading 8-bytes value from somePosition
ds.device()->seek( somePosition );