本页内容

QLatin1String Class

QLatin1String 与QLatin1StringView 相同。更多内容...

头文件: #include <QLatin1String>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

详细说明

QLatin1String 是对 Latin-1 字符串的一种视图。它与QLatin1StringView 完全相同,仅出于兼容性考虑而保留。建议改用QLatin1StringView 。

详情请参阅QLatin1StringView 的文档。

© 2026 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.