このページでは

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.