Thank you, I was looking at 4.7 reference apparently.
Thank you, I was looking at 4.7 reference apparently.
This method is available since Qt 4.1: http://doc.qt.nokia.com/4.1/qtextstream.html#status
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
andQt Code:
int value; stream >> value;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?Qt Code:
int value; stream >> value;To copy to clipboard, switch view to plain text mode
Last edited by Acce; 27th July 2012 at 11:25.
What mistake? You are looking at the reference of an enum, not the method. At the end of the docs for the enum there is "See also status()" with a link to the method docs.
I would guess that one is for read access and the other for write access.what is the difference between these 2 statuses?
Bookmarks