Could you write me proper code for my code
Qt Code:
QByteArray test ; test[0] = 0xFF; unsigned char ch = 0; ch = 0xff; if (test.at(0)==ch) qDebug () << "OK"; qDebug () << ch; qDebug () << test.at(0);To copy to clipboard, switch view to plain text mode
because test[0] is signed and ch is unsigned the condition is false. I will try to use your method but without success.




Reply With Quote
Bookmarks