QNdefNfcTextRecord Class
QNdefNfcTextRecord 클래스는 NFC RTD 텍스트를 제공합니다. 더 보기...
헤더: | #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
이 열거형은 사용되는 텍스트 인코딩 표준을 설명합니다.
Constant | 값 | 설명 |
---|---|---|
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 로 설정합니다.
locale()도 참조하세요 .
void QNdefNfcTextRecord::setText(const QString text)
텍스트 레코드의 내용을 text 로 설정합니다.
text()도 참조하세요 .
QString QNdefNfcTextRecord::text() const
텍스트 레코드의 내용을 문자열로 반환합니다.
setText()도 참조하세요 .
© 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.