QNdefNfcTextRecord Class
La classe QNdefNfcTextRecord fournit un texte RTD NFC. Plus d'informations...
| En-tête : | #include <QNdefNfcTextRecord> |
| CMake : | find_package(Qt6 REQUIRED COMPONENTS Nfc)target_link_libraries(mytarget PRIVATE Qt6::Nfc) |
| qmake : | QT += nfc |
| Héritages : | QNdefRecord |
Types publics
| enum | Encoding { Utf8, Utf16 } |
Fonctions publiques
| 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 |
Documentation du type de membre
enum QNdefNfcTextRecord::Encoding
Cette énumération décrit la norme d'encodage de texte utilisée.
| Constante | Valeur | Description |
|---|---|---|
QNdefNfcTextRecord::Utf8 | 0 | Le texte est encodé en UTF-8. |
QNdefNfcTextRecord::Utf16 | 1 | Le texte est encodé en UTF-16. |
Documentation des fonctions membres
QNdefNfcTextRecord::QNdefNfcTextRecord()
Construit un enregistrement de texte NFC vide de type QNdefRecord::NfcRtd.
QNdefNfcTextRecord::QNdefNfcTextRecord(const QNdefRecord &other)
Construit un nouvel enregistrement de texte NFC qui est une copie de other.
QNdefNfcTextRecord::Encoding QNdefNfcTextRecord::encoding() const
Renvoie l'encodage du contenu.
Voir aussi setEncoding().
QString QNdefNfcTextRecord::locale() const
Renvoie la locale de l'enregistrement de texte.
Voir aussi setLocale().
void QNdefNfcTextRecord::setEncoding(QNdefNfcTextRecord::Encoding encoding)
Définit le codage du contenu à encoding.
Voir aussi encoding().
void QNdefNfcTextRecord::setLocale(const QString &locale)
Définit la locale de l'enregistrement texte à locale.
Voir aussi locale().
void QNdefNfcTextRecord::setText(const QString text)
Définit le contenu de l'enregistrement texte à text.
Voir aussi text().
QString QNdefNfcTextRecord::text() const
Renvoie le contenu de l'enregistrement texte sous forme de chaîne de caractères.
Voir aussi 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.