QByteArray - Ambiguous call to push_back???
Solved
General and Desktop
-
Hi @ebonnett,
there are two overloads: http://doc.qt.io/qt-5/qbytearray.html#push_back-1 and http://doc.qt.io/qt-5/qbytearray.html#push_back-2
Your zero (0x00) can be converted to a char or a pointer, so the compiler don't know what to to.
If you want to append a char, use
data.push_back(char(0x00));
Appending a nullpointer does not really makes sense, does it?!Regards