unsigned char x [] = {0x7E, 0x00,0x00,0x0F};
I want to click on QByteArray, but QByteArray, when it finds '\ 0', stops copying.
What version of Qt are you using? 4.7 has QByteArray(const char*, size) , which should work, and QByteArray::fromRawData(const char*, int size) , which should also work.
QByteArray(const char*, size)
QByteArray::fromRawData(const char*, int size)
QByteArray test ("\ xa4 \ x00 \ x00", 3);
Source: https://habr.com/ru/post/887443/More articles:How to create a UML class diagram with non-object oriented objects? - oopvirtual function questions in C ++ - c ++Adding a macro to an Excel spreadsheet using Java - javaApache POI exit issue - javaAdding an error message to the check summary - c #Where is my streaming subscription going? - c #https://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/887445/splitting-a-rectangular-image-to-polygons-to-simulate-breaking-glass&usg=ALkJrhiWECx2qIBzxNlxGBhgSi1HJ2FNOwStyling ContextMenu and ContextMenu elements - wpfWhat is the Android equivalent of / dev / video0 for a tablet camera? - androidhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/887448/how-do-you-get-s3-methods-to-work-with-s4-objects&usg=ALkJrhgIEqQYP_TTKe0K-izk9nuIi1sD4gAll Articles