In questa pagina

QNdefNfcTextRecord Class

La classe QNdefNfcTextRecord fornisce un RTD-Text NFC. Per saperne di più...

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

Tipi pubblici

enum Encoding { Utf8, Utf16 }

Funzioni pubbliche

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

Descrizione dettagliata

RTD-Text incapsula un record di testo visualizzabile dall'utente.

Documentazione sui tipi dei membri

enum QNdefNfcTextRecord::Encoding

Questa enumerazione descrive lo standard di codifica del testo utilizzato.

CostanteValoreDescrizione
QNdefNfcTextRecord::Utf80Il testo è codificato con UTF-8.
QNdefNfcTextRecord::Utf161Il testo è codificato con UTF-16.

Documentazione delle funzioni membro

QNdefNfcTextRecord::QNdefNfcTextRecord()

Crea un record di testo NFC vuoto di tipo QNdefRecord::NfcRtd.

QNdefNfcTextRecord::QNdefNfcTextRecord(const QNdefRecord &other)

Crea un nuovo record di testo NFC che è una copia di other.

QNdefNfcTextRecord::Encoding QNdefNfcTextRecord::encoding() const

Restituisce la codifica del contenuto.

Vedi anche setEncoding().

QString QNdefNfcTextRecord::locale() const

Restituisce le impostazioni locali del record di testo.

Vedi anche setLocale().

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

Imposta la codifica dei contenuti su encoding.

Vedi anche encoding().

void QNdefNfcTextRecord::setLocale(const QString &locale)

Imposta le impostazioni locali del record di testo su locale. Le impostazioni locali di lunghezza superiore a 63 byte verranno troncate.

Vedi anche locale().

void QNdefNfcTextRecord::setText(const QString text)

Imposta il contenuto del record di testo su text.

Vedi anche text().

QString QNdefNfcTextRecord::text() const

Restituisce il contenuto del record di testo sotto forma di stringa.

Vedi anche 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.