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 |
QVariant | 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 두 글자 코드로, 국가/지역은 ISO 3166 두 글자 코드로 제공됩니다. 사용자 지정 코드도 허용됩니다(OPC UA 1.05 파트 3, 8.4 참조). LocalizedText 요소 배열을 사용하여 값에 대해 서로 다른 언어로 된 여러 텍스트 문자열을 제공하는 데 사용할 수 있습니다.
속성 문서
locale : QString
포함된 텍스트의 로캘. 예를 들어 en-US
과 같이 수정된 ISO 표준 표기법을 사용해야 합니다. 자세한 내용은 OPC UA 사양 1.05 파트 3, 8.4를 참조하세요.
액세스 기능:
text : QString
텍스트 콘텐츠.
액세스 함수:
멤버 함수 문서
QOpcUaLocalizedText::QOpcUaLocalizedText()
기본값은 매개변수 설정 없이 현지화된 텍스트를 생성합니다.
QOpcUaLocalizedText::QOpcUaLocalizedText(const QString &locale, const QString &text)
로캘 locale 과 텍스트 text 를 사용하여 현지화된 텍스트를 작성합니다.
QOpcUaLocalizedText::QOpcUaLocalizedText(const QOpcUaLocalizedText &rhs)
rhs 에서 현지화된 텍스트를 작성합니다.
QString QOpcUaLocalizedText::locale() const
로캘을 반환합니다.
참고: 속성 로캘에 대한 게터 함수입니다.
setLocale()도 참조하세요 .
void QOpcUaLocalizedText::setLocale(const QString &locale)
로캘을 locale 로 설정합니다.
참고: 속성에 대한 세터 함수 locale.
locale()도 참조하세요 .
void QOpcUaLocalizedText::setText(const QString &text)
텍스트를 text 로 설정합니다.
참고: 속성에 대한 세터 함수 text.
text()도 참조하세요 .
QString QOpcUaLocalizedText::text() const
텍스트를 반환합니다.
참고: 속성 텍스트에 대한 게터 함수입니다.
setText()도 참조하세요 .
QVariant 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 를참조하십시오 .
© 2025 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.