Ok, I'm sorry for the mess.
This is the page I was looking at
http://doc.qt.nokia.com/4.7-snapshot...ml#Status-enum
because it comes right up when googling "qtextstream reference", maybe the page has a mistake in it?
or did you mean that the error checking when reading has been there since 4.1? because I needed the WriteFailed
and I can't find it in 4.1...
Anyways thanks for pointing me to the right place.
EDIT:
I tried with both
int value;
stream >> value;
int value;
stream >> value;
if(!(stream.status() == QTextStream::ReadCorruptData))
To copy to clipboard, switch view to plain text mode
and
int value;
stream >> value;
int value;
stream >> value;
if(!(stream.status() == QTextStream::WriteFailed))
To copy to clipboard, switch view to plain text mode
and both result in behaviour I want when something else than integer comes from the stream.. what is the difference between these 2 statuses?
Bookmarks