Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
src_corelib_text_qstringconverter.cpp
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
9
10
12QString string = "...";
16
17
20
22while (new_data_available()) {
23 QByteArray chunk = get_new_data();
24 string += toUtf16(chunk);
25}
27
30
32while (new_data_available()) {
33 QString chunk = get_new_data();
34 encoded += fromUtf16(chunk);
35}
\inmodule QtCore
Definition qbytearray.h:57
\inmodule QtCore
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
QByteArray encodedString
[0]