Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Felgo Live Code Reloading: Web Editor

Run this example on your Android and iOS phone now, with the Felgo Live Scripting mobile app!

Please note that the Web Editor still runs on Felgo 3. You will be able to use Felgo 4 very soon!

import Felgo 3.0 import QtQuick 2.0 App { NavigationStack { Page { title: "NFC Demo" Column { anchors.centerIn: parent AppText { anchors.horizontalCenter: parent.horizontalCenter text: "NFC Device Support: %1".arg(nativeUtils.isNfcAvailable()) } AppText { anchors.horizontalCenter: parent.horizontalCenter text: "NFC Session Active: %1".arg(nativeUtils.nfcSessionActive) } Row { spacing: dp(5) AppButton { text: "Open Session" onClicked: nativeUtils.startNfcNdefSession("Hold near NDEF NFC Tag") } AppButton { text: "Close Session" onClicked: { result.reset() nativeUtils.stopNfcNdefSession() } } } AppText { id: result anchors.horizontalCenter: parent.horizontalCenter function showResult(text) { result.color = "black" result.text = text } function showError(text) { result.color = "red" result.text = text } function reset() { result.text = "" } } } } } Connections { target: nativeUtils onNfcNdefPayloadDetected: { nativeUtils.vibrate() console.debug("Received NDEF message:", payload, "from tag:", tagId) result.showResult("Tag: %1\nPayload: %2".arg(tagId).arg(payload)) } onNfcNdefError: { console.debug("Error while reading NDEF message:", reason) result.showError(reason) } } }

1. Download Felgo Live Scripting app

2. Open the app and add the displayed Dev ID here.

QML Hot Reload on all Platforms

With Felgo Live, you can reload code changes in real-time on any connected device. While this web editor is just for demonstration purposes, you can use hot reloading also for development on your desktop.

Download the Felgo Developer App app to run your code on Android and iOS, from Windows, macOS or Linux.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded