How to use Qt.openUrlExternally in QML
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")

