QNdefNfcTextRecord Class
QNdefNfcTextRecord クラスは、NFC RTD-Text を提供します。詳細...
ヘッダー | #include <QNdefNfcTextRecord> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Nfc) target_link_libraries(mytarget PRIVATE Qt6::Nfc) |
qmake: | QT += nfc |
継承: | QNdefRecord |
パブリックな型
enum | Encoding { Utf8, Utf16 } |
パブリック関数
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 |
メンバ型ドキュメント
enum QNdefNfcTextRecord::Encoding
この列挙型は、使用されるテキスト符号化方式を記述する。
定数 | 値 | 説明 |
---|---|---|
QNdefNfcTextRecord::Utf8 | 0 | テキストは UTF-8 でエンコードされています。 |
QNdefNfcTextRecord::Utf16 | 1 | テキストは UTF-16 でエンコードされています。 |
メンバ関数ドキュメント
QNdefNfcTextRecord::QNdefNfcTextRecord()
QNdefRecord::NfcRtd 型の空の NFC テキスト・レコードを構築します。
QNdefNfcTextRecord::QNdefNfcTextRecord(const QNdefRecord &other)
other のコピーである新しいNFCテキストレコードを構築する。
QNdefNfcTextRecord::Encoding QNdefNfcTextRecord::encoding() const
コンテンツのエンコーディングを返します。
setEncoding()も参照ください 。
QString QNdefNfcTextRecord::locale() const
テキストレコードのロケールを返します。
setLocale()も参照ください 。
void QNdefNfcTextRecord::setEncoding(QNdefNfcTextRecord::Encoding encoding)
コンテンツのエンコーディングをencoding に設定する。
encoding()も参照のこと 。
void QNdefNfcTextRecord::setLocale(const QString &locale)
テキストレコードのロケールをlocale に設定する。
locale()も参照 。
void QNdefNfcTextRecord::setText(const QString text)
テキスト・レコードの内容をtext に設定する。
text()も参照のこと 。
QString QNdefNfcTextRecord::text() const
テキスト・レコードの内容を文字列として返します。
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.