Results 1 to 1 of 1

Thread: QTextStream gut functionallity on errors

  1. #1
    Join Date
    Dec 2011
    Posts
    36
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question QTextStream gut functionallity on errors

    Hi,

    I am writing to and XML-file using QTextStream.
    After I flush the stream I check for QTextStream::Status.

    I connected a SIGNAL/SLOT to catch possible errors.

    What I can't find in the QTextStream class documentation or online info on the QTextStream (or any Textstream) is what happens when a READPAST END, OR READ CORRUPT DATA error occurs.
    Does QTextStream attempt another READ of the data (x-times), and/or does QTextStream report and then continues reading regardless of found errors and finally reports a WRITEFAILED error? Can anyone point me to some gut functionallity documentation on textstreams - QTextStream in particular?

    I remember from ancient DOS behavior that there was a cycle reading from drive x: (after 8 tries it would give you the abort/fail/retry message) I would like to implement something similar for an Install program that I am writing - preventing an immediate rollback when a QTextStream Error occurs. But without knowing what ReadPast and/or Read Corrupt Data actually does...

    Thx in advance.
    Last edited by m3rlin; 1st April 2013 at 09:20. Reason: Title was not clear

Similar Threads

  1. QTextStream
    By weixj2003ld in forum Qt Programming
    Replies: 5
    Last Post: 10th September 2012, 15:09
  2. QTextStream
    By lahmitia in forum Qt Programming
    Replies: 3
    Last Post: 8th March 2011, 21:50
  3. Replies: 3
    Last Post: 8th July 2010, 07:41
  4. QTextStream
    By WXNSNW in forum Qt Programming
    Replies: 1
    Last Post: 16th November 2008, 16:43
  5. QTextStream help pls
    By munna in forum Newbie
    Replies: 5
    Last Post: 16th May 2006, 18:45

Tags for this Thread

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.