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!

import Felgo 3.0 import QtQuick 2.0 App { NativeView { id: dynamicNativeButton width: dp(170) height: dp(48) anchors.centerIn: parent property string text: qsTr("Native Button") androidBinding: NativeViewBinding { viewClassName: "android.widget.Button" onViewCreated: { updateText() } function updateText() { view.callMethod("setText", dynamicNativeButton.text, NativeObject.UiThread) } } iosBinding: NativeViewBinding { viewClassName: "UIButton" readonly property NativeObject _UIColor: NativeObjectUtils.getClass("UIColor") onViewCreated: { updateText() // configure button visuals: view.setProperty("backgroundColor", _UIColor.getProperty("grayColor")) view.callMethod("setTitleColor:forState:", [_UIColor.getProperty("blackColor"), 0]) view.callMethod("setTitleColor:forState:", [_UIColor.getProperty("whiteColor"), 1]) } function updateText() { view.callMethod("setTitle:forState:", [dynamicNativeButton.text, 0]) } } } }

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