Results 1 to 2 of 2

Thread: reseting reader

  1. #1

    Default reseting reader

    Hello All,

    I am trying to read a file using a declared reader in my Qt program. I'd like to know how do I reset the reader to the top of the file after I have read the contents of the file, say half way..

    Thanks,
    Uchenna

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: reseting reader

    What is a "declared reader"? I suppose you can use for example QIODevice::reset() or QTextStream::seek() depending on which classes you're actually using.

    PS. In the future, please remember that we don't know the components you've written. A "declared reader" might be a clear concept to you but not necessarily to us. Therefore it's always important to give enough background information like which Qt classes you're using and preferably how.
    J-P Nurmi

Similar Threads

  1. Replies: 4
    Last Post: 27th June 2012, 10:41
  2. Qt + Barcode Reader
    By sunil.thaha in forum General Discussion
    Replies: 12
    Last Post: 13th November 2007, 12:13

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.