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 Forum 标签。

使用模块

使用 Qt 模块需要直接或通过其他依赖关系与模块库链接。有几种构建工具为此提供了专门支持,包括CMakeqmake

使用 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.