W3cubDocs

/Qt

QNdefNfcIconRecord Class

The QNdefNfcIconRecord class provides an NFC MIME record to hold an icon. More...

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

Public Functions

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

Detailed Description

This class wraps the image data into an NDEF message. It provides an NDEF record of type QNdefRecord::Mime. The payload() contains the raw image data.

Member Function Documentation

QNdefNfcIconRecord::QNdefNfcIconRecord(const QNdefRecord &other)

Constructs an NDEF icon record that is a copy of other.

QNdefNfcIconRecord::QNdefNfcIconRecord()

Constructs an empty NDEF record of type QNdefRecord::Mime.

QByteArray QNdefNfcIconRecord::data() const

Returns the icon data as QByteArray.

See also setData().

void QNdefNfcIconRecord::setData(const QByteArray &data)

Sets the contents of the icon record to data.

See also data().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qndefnfciconrecord.html