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

QNdefNfcTextRecord Class

The QNdefNfcTextRecord class provides an NFC RTD-Text.

This class was introduced in Qt 5.2.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QNdefNfcTextRecord Class

  • Header: QNdefNfcTextRecord

  • Since: Qt 5.2

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS Nfc)

    target_link_libraries(mytarget PRIVATE Qt6::Nfc)

  • qmake: QT += nfc

  • Inherits: QNdefRecord

  • Group: QNdefNfcTextRecord is part of connectivity-nfc

Detailed Description

RTD-Text encapsulates a user displayable text record.

Member Type Documentation

 

enum QNdefNfcTextRecord::Encoding

This enum describes the text encoding standard used.

Constant

Value

Description

QNdefNfcTextRecord::Utf8

0

The text is encoded with UTF-8.

QNdefNfcTextRecord::Utf16

1

The text is encoding with UTF-16.

Member Function Documentation

 

QNdefNfcTextRecord::QNdefNfcTextRecord()

Constructs an empty NFC text record of type QNdefRecord::NfcRtd.

QNdefNfcTextRecord::QNdefNfcTextRecord(const QNdefRecord &other)

Constructs a new NFC text record that is a copy of other.

QNdefNfcTextRecord::Encoding QNdefNfcTextRecord::encoding() const

Returns the encoding of the contents.

See Also

See also setEncoding()

QString QNdefNfcTextRecord::locale() const

Returns the locale of the text record.

See Also

See also setLocale()

void QNdefNfcTextRecord::setEncoding(QNdefNfcTextRecord::Encoding encoding)

Sets the enconding of the contents to encoding.

See Also

See also encoding()

void QNdefNfcTextRecord::setLocale(const QString &locale)

Sets the locale of the text record to locale.

See Also

See also locale()

void QNdefNfcTextRecord::setText(const QString text)

Sets the contents of the text record to text.

See Also

See also text()

QString QNdefNfcTextRecord::text() const

Returns the contents of the text record as a string.

See Also

See also setText()

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