Namespaces
Variants
Actions

How to use Qt.openUrlExternally in QML

Jump to: navigation, search

This article demonstrates how to use the QML method Qt.openUrlExternally to make phone calls, send emails and open web links etc.

Article Metadata

Tested with
SDK: Nokia Qt SDK 1.1.3
Devices(s): N9,N950
Dependencies: QtQuick1.0

Article
Created: vineet.jain (16 Dec 2011)
Last edited: hamishwillee (11 Oct 2012)

Contents

Making a phone call

Qt.openUrlExternally("tel:012345xxxxx")

Opening a web link on the device browser

Qt.openUrlExternally("http://m.youtube.com/")

Opening the Email editor with subject & body of email

Qt.openUrlExternally("mailto:someusername@servicename.com?subject=email editor opened & body=sometext")

Opening the native map application with desired co-ordinates

MeeGo

Qt.openUrlExternally("geo:61.446943,23.86449")

Symbian

Qt.openUrlExternally("http://m.ovi.me/?c=61.446943,23.86449")

Opening a file from device's folder

Qt.openUrlExternally("file:///home/user/MyDocs/Pictures/sample.jpg")
This page was last modified on 11 October 2012, at 04:20.
209 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved