hey guys,
I'm trying to save a binary data as string in a QByteArray and for testing I used a simple text as my data and did the following:
now I should be expecting the string "salam" in str2Store variable but only a " is echod by qDebug,ofcourse str2Store.length() returns 10,why is the length 10? and why str2Store is not filled with the the string "salam"?Qt Code:
QByteArray str2Store; out<<"salam"; qDebug()<<str2Store;To copy to clipboard, switch view to plain text mode
Bookmarks