The QNdefNfcTextRecord class provides an NFC RTD-Text. More...
Header: | #include <QNdefNfcTextRecord> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Nfc) target_link_libraries(mytarget PRIVATE Qt6::Nfc) |
qmake: | QT += nfc |
Since: | Qt 5.2 |
Inherits: | QNdefRecord |
enum | Encoding { Utf8, Utf16 } |
QNdefNfcTextRecord(const QNdefRecord &other) | |
QNdefNfcTextRecord() | |
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 |
RTD-Text encapsulates a user displayable text record.
This enum describes the text encoding standard used.
Constant | Value | Description |
---|---|---|
QNdefNfcTextRecord::Utf8 |
0 |
The text is encoded with UTF-8. |
QNdefNfcTextRecord::Utf16 |
1 |
The text is encoding with UTF-16. |
Constructs a new NFC text record that is a copy of other.
Constructs an empty NFC text record of type QNdefRecord::NfcRtd.
Returns the encoding of the contents.
See also setEncoding().
Returns the locale of the text record.
See also setLocale().
Sets the enconding of the contents to encoding.
See also encoding().
Sets the locale of the text record to locale.
See also locale().
Sets the contents of the text record to text.
See also text().
Returns the contents of the text record as a string.
See also setText().
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: