QNdefNfcTextRecord Class
Die Klasse QNdefNfcTextRecord stellt einen NFC RTD-Text zur Verfügung. Mehr...
Kopfzeile: | #include <QNdefNfcTextRecord> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Nfc) target_link_libraries(mytarget PRIVATE Qt6::Nfc) |
qmake: | QT += nfc |
Vererbt: | QNdefRecord |
Öffentliche Typen
enum | Encoding { Utf8, Utf16 } |
Öffentliche Funktionen
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 |
Dokumentation der Mitgliedstypen
enum QNdefNfcTextRecord::Encoding
Diese Aufzählung beschreibt den verwendeten Textkodierungsstandard.
Konstante | Wert | Beschreibung |
---|---|---|
QNdefNfcTextRecord::Utf8 | 0 | Der Text ist mit UTF-8 kodiert. |
QNdefNfcTextRecord::Utf16 | 1 | Der Text ist mit UTF-16 kodiert. |
Dokumentation der Mitgliedsfunktionen
QNdefNfcTextRecord::QNdefNfcTextRecord()
Konstruiert einen leeren NFC-Textdatensatz vom Typ QNdefRecord::NfcRtd.
QNdefNfcTextRecord::QNdefNfcTextRecord(const QNdefRecord &other)
Konstruiert einen neuen NFC-Textdatensatz, der eine Kopie von other ist.
QNdefNfcTextRecord::Encoding QNdefNfcTextRecord::encoding() const
Gibt die Kodierung des Inhalts zurück.
Siehe auch setEncoding().
QString QNdefNfcTextRecord::locale() const
Gibt das Gebietsschema des Textsatzes zurück.
Siehe auch setLocale().
void QNdefNfcTextRecord::setEncoding(QNdefNfcTextRecord::Encoding encoding)
Setzt die Kodierung des Inhalts auf encoding.
Siehe auch encoding().
void QNdefNfcTextRecord::setLocale(const QString &locale)
Setzt das Gebietsschema des Textsatzes auf locale.
Siehe auch locale().
void QNdefNfcTextRecord::setText(const QString text)
Setzt den Inhalt des Textsatzes auf text.
Siehe auch text().
QString QNdefNfcTextRecord::text() const
Gibt den Inhalt des Textsatzes als Zeichenkette zurück.
Siehe auch setText().
© 2025 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.