QDataStream problem from 4.8 to 5.1 on MacOS
-
Hello,
I am getting error on this:
@ QByteArray ba;
QDataStream ds(&ba, QIODevice::WriteOnly);
//This will write the hash into the byte array (through the data stream)
ds << hash;@The error output is:
licensefile.cpp:185: error: variable has incomplete type 'QDataStream'
QDataStream ds(&ba);
^Any help please?
-
did you perhaps forgot the #include <QDataStream>?
-
Badger tkx, stupidity :) The funny thing is on 4.8 this was working :)
Now gave me the follow error:Qt5.1.0/5.1.0/clang_64/include/QtCore/qhash.h:110: error: call to 'qHash' is ambiguous
Q_DECL_NOEXCEPT_EXPR(noexcept(qHash(t)))
^~~~~ -
Sorry I have no idea about that, can you perhaps post the code that generates this error?
-
This is from qhash.h , i think this sould be something I need to put on my .pro.
I even not work with QHash.h ...@template<typename T> inline uint qHash(const T &t, uint seed)
Q_DECL_NOEXCEPT_EXPR(noexcept(qHash(t)))
{ return (qHash(t) ^ seed); }@ -
Hi,
Are you using a custom hash ?
-
no ...
-
Could you show the part of your code that triggers this ?