[Solved]help serializing a QMultiHash
-
i get this error:
@
/usr/QtSDK/Desktop/Qt/473/gcc/include/QtCore/qdatastream.h:362: error: no match for ‘operator>>’ in ‘operator>>((* & in), (* & k)) >> t’
@I am trying to serialize a QMultiHash<QString,IndexItem> using QDataStream.. i have already defined operator << and >> for IndexItem like this:
@
QDataStream & operator<<(QDataStream & stream,const IndexItem & item);
QDataStream & operator>>(QDataStream & in,IndexItem & item);
@wherein i have serialized the contents of IndexItem...
I get the error when i do
@
stream >> index
@
and
@
stream << index
@
where stream is a QDataStream and index is the QMultiHashI get a similar error
@
/usr/QtSDK/Desktop/Qt/473/gcc/include/QtCore/qdatastream.h:381: error: no match for ‘operator<<’ in ‘operator<<((* & out), (* & it.QHash<Key, T>::const_iterator::key with Key = QString, T = IndexItem)) << it.QHash<Key, T>::const_iterator::value with Key = QString, T = IndexItem’
@
PLEASE HELP