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ハンドル

詳細説明

この Qt NFCC++ API を使用すると、アプリケーションは NFC フォーラム・タグにアクセスできます。

モジュールの使用

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

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