En esta página

QNdefNfcTextRecord Class

La clase QNdefNfcTextRecord proporciona un RTD-Texto NFC. Más...

Cabecera: #include <QNdefNfcTextRecord>
CMake: find_package(Qt6 REQUIRED COMPONENTS Nfc)
target_link_libraries(mytarget PRIVATE Qt6::Nfc)
qmake: QT += nfc
Hereda: QNdefRecord

Tipos Públicos

enum Encoding { Utf8, Utf16 }

Funciones Públicas

QNdefNfcTextRecord()
QNdefNfcTextRecord(const QNdefRecord &other)
QNdefNfcTextRecord::Encoding encoding() const
QString locale() const
void setEncoding(QNdefNfcTextRecord::Encoding encoding)
void setLocale(const QString &locale)
void setText(const QString text)
QString text() const

Descripción detallada

RTD-Text encapsula un registro de texto visualizable por el usuario.

Documentación de los tipos de miembros

enum QNdefNfcTextRecord::Encoding

Este enum describe el estándar de codificación de texto utilizado.

ConstanteValorDescripción
QNdefNfcTextRecord::Utf80El texto está codificado con UTF-8.
QNdefNfcTextRecord::Utf161El texto está codificado con UTF-16.

Documentación de la función miembro

QNdefNfcTextRecord::QNdefNfcTextRecord()

Construye un registro de texto NFC vacío de tipo QNdefRecord::NfcRtd.

QNdefNfcTextRecord::QNdefNfcTextRecord(const QNdefRecord &other)

Construye un nuevo registro de texto NFC que es una copia de other.

QNdefNfcTextRecord::Encoding QNdefNfcTextRecord::encoding() const

Devuelve la codificación del contenido.

Véase también setEncoding().

QString QNdefNfcTextRecord::locale() const

Devuelve la configuración regional del registro de texto.

Véase también setLocale().

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

Establece la codificación del contenido en encoding.

Véase también encoding().

void QNdefNfcTextRecord::setLocale(const QString &locale)

Establece la configuración regional del registro de texto en locale.

Véase también locale().

void QNdefNfcTextRecord::setText(const QString text)

Establece el contenido del registro de texto en text.

Véase también text().

QString QNdefNfcTextRecord::text() const

Devuelve el contenido del registro de texto en forma de cadena.

Véase también setText().

© 2026 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.