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 .
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 .
Yes, it should work. QMultiMap is really just a convenience wrapper over QMap.
Qt Code:
#include <QtCore> int main() { QMultiMap<QString,QString> map; QDataStream stream; stream << map; return 0; }To copy to clipboard, switch view to plain text mode
Bookmarks