En esta página

QNdefNfcIconRecord Class

La clase QNdefNfcIconRecord proporciona un registro MIME NFC para almacenar un icono. Más información...

Encabezado: #include <QNdefNfcIconRecord>
CMake: find_package(Qt6 REQUIRED COMPONENTS Nfc)
target_link_libraries(mytarget PRIVATE Qt6::Nfc)
qmake: QT += nfc
Desde: Qt 5.2
Heredado de: QNdefRecord

Funciones públicas

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

Descripción detallada

Esta clase envuelve los datos de la imagen en un mensaje NDEF. Proporciona un registro NDEF de tipo « QNdefRecord::Mime ». El método « payload()» contiene los datos sin procesar de la imagen.

Documentación de las funciones miembro

QNdefNfcIconRecord::QNdefNfcIconRecord()

Crea un registro NDEF vacío de tipo « QNdefRecord::Mime ».

QNdefNfcIconRecord::QNdefNfcIconRecord(const QNdefRecord &other)

Crea un registro de icono NDEF que es una copia de other.

QByteArray QNdefNfcIconRecord::data() const

Devuelve los datos del icono como ` QByteArray`.

Advertencia: Se recomienda a los desarrolladoresde aplicaciones que validen los datos devueltos antes de procesarlos. Consulte « Qt NFC: Consideraciones de seguridad» para obtener orientación.

Véase también setData().

void QNdefNfcIconRecord::setData(const QByteArray &data)

Establece el contenido del registro del icono en data.

Véase también 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.