PDA

View Full Version : seek and pos function alternatives



uchennaanyanwu
4th August 2008, 23:15
Hi guys,

I have qt 3.3.8 and I would like to know how to seek and find the byte position in a file, like a seek( ) and pos( ) in qt 4.
There doesn't seem to be these functions in the qiodevice.h file in 3.3.8. I really don't want to update to qt4. What should I do instead ?

Thanks!

jacek
5th August 2008, 00:49
In that case you can use FILE, fseek() and ftell().

spirit
5th August 2008, 09:46
Hi guys,

I have qt 3.3.8 and I would like to know how to seek and find the byte position in a file, like a seek( ) and pos( ) in qt 4.
There doesn't seem to be these functions in the qiodevice.h file in 3.3.8. I really don't want to update to qt4. What should I do instead ?

Thanks!

maybe there are these methods which you are looking for?


bool QIODevice::at ( Offset pos ) [virtual]
Offset QIODevice::at () const [virtual]