In questa pagina

QNdefNfcIconRecord Class

La classe QNdefNfcIconRecord fornisce un record MIME NFC per contenere un'icona. Per saperne di più...

Intestazione: #include <QNdefNfcIconRecord>
CMake: find_package(Qt6 REQUIRED COMPONENTS Nfc)
target_link_libraries(mytarget PRIVATE Qt6::Nfc)
qmake: QT += nfc
A partire da: Qt 5.2
Eredita da: QNdefRecord

Funzioni pubbliche

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

Descrizione dettagliata

Questa classe racchiude i dati dell'immagine in un messaggio NDEF. Fornisce un record NDEF di tipo QNdefRecord::Mime. Il metodo payload() contiene i dati grezzi dell'immagine.

Documentazione delle funzioni membro

QNdefNfcIconRecord::QNdefNfcIconRecord()

Crea un record NDEF vuoto di tipo QNdefRecord::Mime.

QNdefNfcIconRecord::QNdefNfcIconRecord(const QNdefRecord &other)

Crea un record icona NDEF che è una copia di other.

QByteArray QNdefNfcIconRecord::data() const

Restituisce i dati dell'icona come oggetto ` QByteArray`.

Avviso: si consiglia agli sviluppatoridi applicazioni di verificare la validità dei dati restituiti prima di elaborarli. Per ulteriori indicazioni, consultare la sezione Considerazioni sulla sicurezza di Qt NFC.

Vedi anche setData().

void QNdefNfcIconRecord::setData(const QByteArray &data)

Imposta il contenuto del record dell'icona su data.

Vedi anche 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.