Qt 6.12 LTS is out! See what's new in the release
blog
size() and constData() of QByteArray
-
The result of what I tried in VS is different from QT document, even though I just copied the codes from Qt Document.
- What I tried and result


- Qt Document

-
@jgxy1123 No, it is not different. The document doesn't tell you to print the result by qDebug(). It stops printing when meets \0 while handling const char *.
-
J jgxy1123 has marked this topic as solved on