QOpcUaLocalizedText Class
OPC UA LocalizedText 유형. 더 보기...
| 헤더: | #include <QOpcUaLocalizedText> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpcUa) target_link_libraries(mytarget PRIVATE Qt6::OpcUa) |
| qmake: | QT += opcua |
속성
공개 행사
| QOpcUaLocalizedText() | |
| QOpcUaLocalizedText(const QString &locale, const QString &text) | |
| QOpcUaLocalizedText(const QOpcUaLocalizedText &rhs) | |
| QString | locale() const |
| void | setLocale(const QString &locale) |
| void | setText(const QString &text) |
| QString | text() const |
| operator QVariant() const | |
| QOpcUaLocalizedText & | operator=(const QOpcUaLocalizedText &rhs) |
| bool | operator==(const QOpcUaLocalizedText &rhs) const |
관련 비회원
(since 6.3) QDebug | operator<<(QDebug debug, const QOpcUaLocalizedText &text) |
상세 설명
이는 OPC UA 1.05 파트 3, 8.5에 정의된 OPC UA LocalizedText 유형에 대한 Qt OPC UA 표현입니다. LocalizedText 값은 텍스트 문자열과, 두 번째 문자열(예: "en" 또는 "en-US")로 표시된 관련 로케일 정보를 포함합니다. 로캘 정보 문자열의 형식은 <언어>[-<국가/지역>]입니다. 언어는 일반적으로 ISO 639 2자리 코드로, 국가/지역은 ISO 3166 2자리 코드로 지정됩니다. 사용자 정의 코드도 허용됩니다(OPC UA 1.05 파트 3, 8.4 참조). LocalizedText 요소의 배열을 사용하여 값에 대해 서로 다른 언어로 된 여러 텍스트 문자열을 제공할 수 있습니다.
속성 문서
locale : QString
포함된 텍스트의 로케일입니다. 이는 수정된 ISO 표준 표기법(예: en-US)으로 지정되어야 합니다. 자세한 내용은 OPC UA 사양 1.05 파트 3, 8.4를 참조하십시오.
액세스 함수:
text : QString
텍스트 콘텐츠.
액세스 함수:
멤버 함수 설명서
QOpcUaLocalizedText::QOpcUaLocalizedText()
Default는 매개변수가 설정되지 않은 상태로 현지화된 텍스트를 생성합니다.
QOpcUaLocalizedText::QOpcUaLocalizedText(const QString &locale, const QString &text)
locale 로케일과 text 텍스트를 사용하여 현지화된 텍스트를 생성합니다.
QOpcUaLocalizedText::QOpcUaLocalizedText(const QOpcUaLocalizedText &rhs)
rhs 에서 현지화된 텍스트를 생성합니다.
QString QOpcUaLocalizedText::locale() const
로케일을 반환합니다.
참고: `locale` 속성에 대한게터 함수입니다.
setLocale()도 참조하십시오 .
void QOpcUaLocalizedText::setLocale(const QString &locale)
로케일을 locale 로 설정합니다.
참고: locale 속성에 대한세터 함수입니다.
locale()도 참조하십시오 .
void QOpcUaLocalizedText::setText(const QString &text)
텍스트를 “ text ”로 설정합니다.
참고: text 속성에 대한세터 함수입니다.
text()도 참조하십시오 .
QString QOpcUaLocalizedText::text() const
텍스트를 반환합니다.
참고: text 속성에 대한게터 함수입니다.
setText()도 참조하십시오 .
QOpcUaLocalizedText::operator QVariant() const
이 현지화된 텍스트를 “ QVariant ”로 변환합니다.
QOpcUaLocalizedText &QOpcUaLocalizedText::operator=(const QOpcUaLocalizedText &rhs)
이 현지화된 텍스트에서 rhs 의 값을 설정합니다.
bool QOpcUaLocalizedText::operator==(const QOpcUaLocalizedText &rhs) const
이 현지화된 텍스트의 값이 rhs 와 동일한 경우 true 를 반환합니다.
관련 비회원
[since 6.3] QDebug operator<<(QDebug debug, const QOpcUaLocalizedText &text)
로컬라이제이션된 ` text `를 ` debug ` 출력에 기록합니다.
이 함수는 Qt 6.3에서 도입되었습니다.
QDebug도 참조하십시오 .
© 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.