QNdefNfcTextRecord Class
La clase QNdefNfcTextRecord proporciona un RTD-Text de NFC. Más información...
| Encabezado: | #include <QNdefNfcTextRecord> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Nfc) target_link_libraries(mytarget PRIVATE Qt6::Nfc) |
| qmake: | QT += nfc |
| Heredado de: | 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 |
Documentación sobre los tipos de miembros
enum QNdefNfcTextRecord::Encoding
Esta enumeración describe el estándar de codificación de texto utilizado.
| Constante | Valor | Descripción |
|---|---|---|
QNdefNfcTextRecord::Utf8 | 0 | El texto está codificado en UTF-8. |
QNdefNfcTextRecord::Utf16 | 1 | El texto está codificado en UTF-16. |
Documentación de las funciones de miembro
QNdefNfcTextRecord::QNdefNfcTextRecord()
Crea un registro de texto NFC vacío de tipo « QNdefRecord::NfcRtd ».
QNdefNfcTextRecord::QNdefNfcTextRecord(const QNdefRecord &other)
Crea 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. Las configuraciones regionales de más de 63 bytes se truncarán.
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 como una 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.