QNdefNfcTextRecord Class
QNdefNfcTextRecord 클래스는 NFC RTD-Text를 제공합니다. 더 보기...
| 헤더: | #include <QNdefNfcTextRecord> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Nfc) target_link_libraries(mytarget PRIVATE Qt6::Nfc) |
| qmake: | QT += nfc |
| 상속: | QNdefRecord |
공개 유형
| enum | Encoding { Utf8, Utf16 } |
공개 함수
| QNdefNfcTextRecord() | |
| QNdefNfcTextRecord(const QNdefRecord &other) | |
| QNdefNfcTextRecord::Encoding | encoding() const |
| QString | locale() const |
| void | setEncoding(QNdefNfcTextRecord::Encoding encoding) |
| void | setLocale(const QString &locale) |
| void | setText(const QString text) |
| QString | text() const |
멤버 유형 설명
enum QNdefNfcTextRecord::Encoding
이 열거형은 사용된 텍스트 인코딩 표준을 나타냅니다.
| 상수 | 값 | 설명 |
|---|---|---|
QNdefNfcTextRecord::Utf8 | 0 | 텍스트는 UTF-8로 인코딩됩니다. |
QNdefNfcTextRecord::Utf16 | 1 | 텍스트는 UTF-16으로 인코딩됩니다. |
멤버 함수 문서
QNdefNfcTextRecord::QNdefNfcTextRecord()
QNdefRecord::NfcRtd 유형의 빈 NFC 텍스트 레코드를 생성합니다.
QNdefNfcTextRecord::QNdefNfcTextRecord(const QNdefRecord &other)
other 의 복사본인 새로운 NFC 텍스트 레코드를 생성합니다.
QNdefNfcTextRecord::Encoding QNdefNfcTextRecord::encoding() const
콘텐츠의 인코딩을 반환합니다.
setEncoding()도 참조하십시오 .
QString QNdefNfcTextRecord::locale() const
텍스트 레코드의 로케일을 반환합니다.
setLocale()도 참조하십시오 .
void QNdefNfcTextRecord::setEncoding(QNdefNfcTextRecord::Encoding encoding)
콘텐츠의 인코딩을 encoding 로 설정합니다.
encoding()도 참조하십시오 .
void QNdefNfcTextRecord::setLocale(const QString &locale)
텍스트 레코드의 로케일을 locale 로 설정합니다. 63바이트를 초과하는 로케일은 잘립니다.
locale()도 참조하십시오 .
void QNdefNfcTextRecord::setText(const QString text)
텍스트 레코드의 내용을 text 로 설정합니다.
text()도 참조하십시오 .
QString QNdefNfcTextRecord::text() const
텍스트 레코드의 내용을 문자열로 반환합니다.
setText()도 참조하십시오 .
© 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.