QNdefNfcIconRecord Class

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

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

公共函数

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

详细描述

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

成员函数文档编制

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 .

另请参阅 setData ().

void QNdefNfcIconRecord:: setData (const QByteArray & data )

Sets the contents of the icon record to data .

另请参阅 data ().