[Interest] QDataStream null terminated string / Bug or expected behavior?

Glen Mabey gmabey at swri.org
Fri Feb 10 17:02:04 CET 2017


> On Feb 10, 2017, at 9:27 AM, Etienne Sandré-Chardonnal <etienne.sandre at m4x.org> wrote:
> 
> Thanks for the link. Yes, I'm doing something bad, but there is no strong reason to encode a string litteral differently than a QByteArray and not allowing this. But since retro-compatibility is more important I suppose this cannot be changed...
> 
> Is there a page summarizing all QDataStream >> overloads? They are not in QDataStream documentation, even as non-members. Seems difficult to find them all without looking into all the storage classes.

I think you might be looking for this: http://doc.qt.io/qt-5/datastreamformat.html

See also: http://lists.qt-project.org/pipermail/development/2016-September/027302.html

Glen


More information about the Interest mailing list