The QNdefNfcIconRecord class provides an NFC MIME record to hold an icon. More...
|CMake:|| find_package(Qt6 REQUIRED COMPONENTS Nfc) |
target_link_libraries(mytarget PRIVATE Qt6::Nfc)
|qmake:||QT += nfc|
|QNdefNfcIconRecord(const QNdefRecord &other)|
|void||setData(const QByteArray &data)|
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
Constructs an empty NDEF record of type QNdefRecord::Mime.
QNdefNfcIconRecord::QNdefNfcIconRecord(const QNdefRecord &other)
Constructs an NDEF icon record that is a copy of other.
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().
© 2023 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.