Qt NFC C++ 類

用於訪問 NFC 論壇標簽的 API。 更多...

QNdefFilter Filter for matching NDEF messages
QNdefFilter::Record QNdefFilter::Record struct contains the information about a filter record
QNdefMessage NFC NDEF message
QNdefNfcIconRecord NFC MIME record to hold an icon
QNdefNfcSmartPosterRecord NFC RTD-SmartPoster
QNdefNfcTextRecord NFC RTD-Text
QNdefNfcUriRecord NFC RTD-URI
QNdefRecord NFC NDEF record
QNearFieldManager Access to notifications for NFC events
QNearFieldTarget Interface for communicating with a target device
QNearFieldTarget::RequestId A request id handle

詳細描述

The Qt NFC C++ API enables an application to access NFC Forum Tags.

使用模塊

使用 Qt 模塊要求直接或透過其它依賴鏈接到模塊庫。一些構建工具為此有貢獻支持,包括 CMake and qmake .

構建采用 CMake

使用 find_package() 命令定位所需模塊組件在 Qt6 包:

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

采用 qmake 構建

To configure the module for building with qmake, add the module as a value of the QT variable in the project's .pro file:

QT += nfc