The QLatin1Char class provides an 8-bit ASCII/Latin-1 character. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS Core) |
target_link_libraries(mytarget PRIVATE Qt6::Core)
|qmake:||QT += core|
Note: All functions in this struct are reentrant.
This class is only useful to construct a QChar with 8-bit character.
Member Function Documentation
Constructs a Latin-1 character for c. This constructor should be used when the encoding of the input character is known to be Latin-1.
Converts a Latin-1 character to an 8-bit ASCII representation of the character.
Converts a Latin-1 character to an 16-bit-encoded Unicode representation of the character.
[since 6.4] QLatin1Char operator""_L1(char ch)
Literal operator that creates a QLatin1Char out of ch.
The following code creates a QLatin1Char:
using namespace Qt::Literals::StringLiterals; auto ch = 'a'_L1;
This function was introduced in Qt 6.4.
See also Qt::Literals::StringLiterals.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.