I'm trying to use a QDataStream to serialize some data into a QByteArray. This needs to be done over multiple function calls: one to initialize it, one to add data to it called 1 to N times, and a call to use the data and finish up. I'm not sure how to do this (which might again be my lack of expertise with C++ and/or Qt). If I make the QDataStream a private class variable, there isn't a QDataStream.setDevice() for a QByteArray so I don't know how to init it, I can't use a QDataStream* as << and >> requires a QDataStream&.
Help.
Thanks.
Bookmarks