IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QNdefNfcIconRecord Class

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

This class was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QNdefNfcIconRecord Class

  • Header: QNdefNfcIconRecord

  • Since: Qt 5.2

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Nfc)

    target_link_libraries(mytarget PRIVATE Qt6::Nfc)

  • qmake: QT += nfc

  • Inherits: QNdefRecord

  • Group: QNdefNfcIconRecord is part of connectivity-nfc

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()

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

See also setData()

void QNdefNfcIconRecord::setData(const QByteArray &data)

Sets the contents of the icon record to data.

See Also

See also data()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+