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.12 import QtLocation 5.12 App { property int mapTypeIndex: 1 AppMap { id: appMap anchors.fill: parent activeMapType: supportedMapTypes[mapTypeIndex] plugin: mapboxPlugin } Plugin { id: mapboxPlugin name: "mapbox" // configure your own map_id and access_token here parameters: [ PluginParameter { name: "mapbox.mapping.map_id" value: "mapbox.streets" }, PluginParameter { name: "mapbox.access_token" value: "pk.eyJ1IjoiZ3R2cGxheSIsImEiOiJjaWZ0Y2pkM2cwMXZqdWVsenJhcGZ3ZDl5In0.6xMVtyc0CkYNYup76iMVNQ" } ] } IconButton { icon: IconType.chevronright size: dp(36) anchors { right: parent.right verticalCenter: parent.verticalCenter margins: dp(8) } // increase or start at 0 again if max index exceeded onClicked: mapTypeIndex = (mapTypeIndex + 1) % appMap.supportedMapTypes.length } IconButton { icon: IconType.chevronleft size: dp(36) anchors { left: parent.left verticalCenter: parent.verticalCenter margins: dp(8) } // decrease index or jump to max index if at the beginning onClicked: mapTypeIndex = (mapTypeIndex === 0) ? appMap.supportedMapTypes.length - 1 : mapTypeIndex - 1 } }

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