Answer the question
In order to leave comments, you need to log in
Why does it throw errors when adding elements to QSet and QList?
Hello Habr!
How are you doing? How is your health?
Actually the question:
There is a code:
...
QSet<eqRec> eqsOne;
...
for(QList<eqRec>::iterator it = access.getEqs()->begin(); it != access.getEqs()->end(); it++){
...
eqsOne.insert(*it); // место, откуда переходит на ошибку
...
}
C:\Qt\5.4\mingw491_32\include\QtCore\qhash.h:102: error: no matching function for call to 'qHash(const eqRec&)'
{ return (qHash(t) ^ seed); }
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question