QNdefNfcIconRecord Class
QNdefNfcIconRecord 클래스는 아이콘을 저장하기 위한 NFC MIME 레코드를 제공합니다. 더 보기...
| 헤더: | #include <QNdefNfcIconRecord> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Nfc) target_link_libraries(mytarget PRIVATE Qt6::Nfc) |
| qmake: | QT += nfc |
| 다음부터: | Qt 5.2 |
| 상속: | QNdefRecord |
공개 함수
| QNdefNfcIconRecord() | |
| QNdefNfcIconRecord(const QNdefRecord &other) | |
| QByteArray | data() const |
| void | setData(const QByteArray &data) |
상세 설명
이 클래스는 이미지 데이터를 NDEF 메시지로 묶어줍니다. 이 클래스는 ` QNdefRecord::Mime` 유형의 NDEF 레코드를 제공합니다. ` payload()` 메서드는 원시 이미지 데이터를 포함합니다.
멤버 함수 설명
QNdefNfcIconRecord::QNdefNfcIconRecord()
QNdefRecord::Mime 유형의 빈 NDEF 레코드를 생성합니다.
QNdefNfcIconRecord::QNdefNfcIconRecord(const QNdefRecord &other)
other 의 복사본인 NDEF 아이콘 레코드를 생성합니다.
QByteArray QNdefNfcIconRecord::data() const
아이콘 데이터를 ` QByteArray` 형식으로 반환합니다.
경고: 애플리케이션 개발자는 반환된 데이터를 처리하기 전에 유효성을 확인해야 합니다. 자세한 내용은 ' Qt NFC 보안 고려 사항'을 참조하십시오.
setData()도 참조하십시오 .
void QNdefNfcIconRecord::setData(const QByteArray &data)
아이콘 레코드의 내용을 data 로 설정합니다.
data()도 참조하십시오 .
© 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.