PDA

View Full Version : QMultiMap And QDataStream



amiref
29th March 2011, 18:46
Hi
I saw in QtAssistant that QDataStream supports QMap and QMultiMap inherits QMap . Does Qt support QMultiMap for serialization with QDataStream ? please help me . thanks .

wysota
30th March 2011, 11:50
Yes, it should work. QMultiMap is really just a convenience wrapper over QMap.


#include <QtCore>

int main() {
QMultiMap<QString,QString> map;
QDataStream stream;
stream << map;
return 0;
}