QNdefNfcIconRecord Class

Die Klasse QNdefNfcIconRecord stellt einen NFC-MIME-Datensatz zur Aufnahme eines Symbols bereit. Mehr...

Kopfzeile: #include <QNdefNfcIconRecord>
CMake: find_package(Qt6 REQUIRED COMPONENTS Nfc)
target_link_libraries(mytarget PRIVATE Qt6::Nfc)
qmake: QT += nfc
Seit: Qt 5.2
Vererbt: QNdefRecord

Öffentliche Funktionen

QNdefNfcIconRecord()
QNdefNfcIconRecord(const QNdefRecord &other)
QByteArray data() const
void setData(const QByteArray &data)

Detaillierte Beschreibung

Diese Klasse wickelt die Bilddaten in eine NDEF-Nachricht ein. Sie liefert einen NDEF-Datensatz vom Typ QNdefRecord::Mime. Der payload() enthält die Rohdaten des Bildes.

Dokumentation der Mitgliedsfunktionen

QNdefNfcIconRecord::QNdefNfcIconRecord()

Konstruiert einen leeren NDEF-Datensatz des Typs QNdefRecord::Mime.

QNdefNfcIconRecord::QNdefNfcIconRecord(const QNdefRecord &other)

Konstruiert einen NDEF-Symboldatensatz, der eine Kopie von other ist.

QByteArray QNdefNfcIconRecord::data() const

Gibt die Symboldaten als QByteArray zurück.

Siehe auch setData().

void QNdefNfcIconRecord::setData(const QByteArray &data)

Setzt den Inhalt des Icon-Datensatzes auf data.

Siehe auch data().

© 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.