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 に設定します。63 バイトを超えるロケールは切り捨てられます。
locale()も参照してください 。
void QNdefNfcTextRecord::setText(const QString text)
テキストレコードの内容を「text 」に設定します。
text()も参照してください 。
QString QNdefNfcTextRecord::text() const
テキストレコードの内容を文字列として返します。
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.