The NFC API provides connectivity between NFC enabled devices.
Currently the API is supported on Android, and Linux using Neard v0.14 or later.
NFC is an extremely short-range (less than 20 centimeters) wireless technology and has a maximum transfer rate of 424 kbit/s. NFC is ideal for transferring small packets of data when two devices are touched together.
The NFC API provides APIs for interacting with NFC Forum Tags and NFC Forum Devices, including target detection and loss, registering NDEF message handlers, reading and writing NDEF messages on NFC Forum Tags and sending tag specific commands.
To use the C++ library in your application, add the following configuration option to your .pro
file:
QT += nfc
To use the classes of the module in your application you need the following import statement in your .qml
file:
import QtNfc 5.12
Qt NFC is available under commercial licenses from The Qt Company. In addition, it is available under free software licenses. Since Qt 5.4, these free software licenses are GNU Lesser General Public License, version 3, or the GNU General Public License, version 2. See Qt Licensing for further details.
The QtNfc module exports the following logging categories:
Logging Category | Description |
---|---|
qt.nfc.neard | Enables logging of the Neard/Linux implementation |
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qtnfc-index.html