Results 1 to 3 of 3

Thread: seek and pos function alternatives

  1. #1

    Default seek and pos function alternatives

    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!

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: seek and pos function alternatives

    In that case you can use FILE, fseek() and ftell().

  3. #3
    Join Date
    Aug 2008
    Location
    Ukraine, Krivoy Rog
    Posts
    1,963
    Thanked 370 Times in 336 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: seek and pos function alternatives

    Quote Originally Posted by uchennaanyanwu View Post
    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?
    Qt Code:
    1. bool QIODevice::at ( Offset pos ) [virtual]
    2. Offset QIODevice::at () const [virtual]
    To copy to clipboard, switch view to plain text mode 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.