diff --git a/examples/nfc/ndefeditor/MainWindow.qml b/examples/nfc/ndefeditor/MainWindow.qml index 0dc5ee46..d32540fb 100644 --- a/examples/nfc/ndefeditor/MainWindow.qml +++ b/examples/nfc/ndefeditor/MainWindow.qml @@ -204,7 +204,6 @@ ApplicationWindow { } function readTag() { - messageModel.clearMessage() window.targetDetectedAction = MainWindow.ReadMessage nfcManager.startTargetDetection() communicationOverlay.title = qsTr("Read Tag") diff --git a/examples/nfc/ndefeditor/doc/src/ndefeditor.qdoc b/examples/nfc/ndefeditor/doc/src/ndefeditor.qdoc index d93b8d5a..3ce6bc1e 100644 --- a/examples/nfc/ndefeditor/doc/src/ndefeditor.qdoc +++ b/examples/nfc/ndefeditor/doc/src/ndefeditor.qdoc @@ -11,6 +11,13 @@ The NDEF Editor example reads and writes NFC Data Exchange Format (NDEF) messages to NFC Forum Tags. NDEF messages can be composed by adding text and URI records. Records can be deleted by swiping them to the left. +Press \b {Write to Tag} to write the records to an NFC tag. + +Press \b {Read Tag} to read the contents of an NFC tag. A successful read of an +NFC tag replaces the manually added records with the NDEF message from the tag. +If the read operation was cancelled or failed, the NDEF message remains +unchanged. + \image ndefeditor.png \sa {Qt NFC}