How can we store the string value into in an particular array in Qt?
Solved
Mobile and Embedded
-
This post is deleted!
-
@Mohit-Tripathi Well, you need to convert "any variable" to QByteArray or something which can be converted to a QByteRef.
Use http://doc.qt.io/qt-5/qstring.html#toShort and set base 16. -
first you should understand the difference between 0x01 and "0x01". the former is a
char
(orint
), the latter a string (array of char).this is basic C knowledge and you will need it always.