このページでは

Qt NFC C++ Classes

NFCフォーラムタグにアクセスするためのAPI。詳細...

クラス

QNdefFilter

NDEFメッセージに一致するフィルター

QNdefFilter::Record

QNdefFilter::Record 構造体は、フィルタレコードに関する情報を格納しています

QNdefMessage

NFC NDEFメッセージ

QNdefNfcIconRecord

アイコンを格納するためのNFC MIMEレコード

QNdefNfcSmartPosterRecord

NFC RTD-SmartPoster

QNdefNfcTextRecord

NFC RTD-Text

QNdefNfcUriRecord

NFC RTD-URI

QNdefRecord

NFC NDEFレコード

QNearFieldManager

NFC イベントの通知へのアクセス

QNearFieldTarget

ターゲットデバイスとの通信用インターフェース

QNearFieldTarget::RequestId

リクエストIDハンドル

詳細な説明

C++ Qt NFC C++ API を使用すると、アプリケーションから NFC Forum タグにアクセスできるようになります。

モジュールの使用

Qt モジュールを使用するには、直接、あるいは他の依存関係を通じて、モジュールライブラリに対してリンクを行う必要があります。CMakeやqmake など、いくつかのビルドツールには、これを専用のサポート機能として備えています。

CMake を使用したビルド

find_package() コマンドを使用して、Qt6 パッケージ内の必要なモジュールコンポーネントを指定します。

find_package(Qt6 REQUIRED COMPONENTS Nfc)
target_link_libraries(mytarget PRIVATE Qt::Nfc)

qmake を使用したビルド

qmake を使用してモジュールをビルドするように設定するには、プロジェクトの .pro ファイル内で、QT 変数の値としてモジュールを追加します:

QT += nfc

© 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.