Qt NFC

The NFC API provides connectivity between NFC enabled devices.

Currently the API is supported on Android, and Linux using Neard v0.14 or later.

Overview

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.

Getting Started

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

Licenses

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.

Guides

Reference

Logging Categories

The QtNfc module exports the following logging categories:

Logging CategoryDescription
qt.nfc.neardEnables logging of the Neard/Linux implementation

Examples