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 QtQuick 2.12 import QtLocation 5.12 import QtPositioning 5.12 import Felgo 3.0 App { Page { AppMap { id: appMap anchors.fill: parent // configure map provider plugin: mapboxPlugin MapItemView { id: mapItemView model: geocodeModel delegate: markerDelegate } //Component used as delegate Component { id: markerDelegate MapQuickItem { coordinate: locationData.coordinate anchorPoint { x: sourceItem.width / 2 y: sourceItem.height } //Item used as graphic sourceItem: Icon { id: userMarker icon: IconType.mapmarker color: "red" size: dp(30) } } } } 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" } ] } GeocodeModel { id: geocodeModel plugin: mapboxPlugin autoUpdate: true onLocationsChanged: { appMap.center = get(0).coordinate appMap.zoomLevel = 10 } } SearchBar { onAccepted: geocodeModel.query = text } AppActivityIndicator { id: busyIndicator anchors.centerIn: parent visible: geocodeModel.status == GeocodeModel.Loading } } }

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