How to make a phone call on android/ios mobiles using QML/Qt?
Mobile and Embedded
5
Posts
3
Posters
5.2k
Views
1
Watching
-
wrote on 1 Mar 2014, 02:06 last edited by
I am developing android/IOS SW using QML and Qt, and need to allow users to click on a phone number (or a related button) and the SW automatically make a phone call on android/ios mobiles.
Could anyone tell me how to do this?
Thanks! Look forward to your help!
-
Hi,
For iOS I've created "this wiki entry":http://qt-project.org/wiki/How_to_make_a_call_or_send_a_sms_on_iOS
I don't know yet for android
-
wrote on 2 Mar 2014, 02:49 last edited by
Thanks! I tested your methods on my Android phone, and all of them did not work.
-
wrote on 24 Mar 2014, 18:31 last edited by
You can use the following QML (javascript) code for making phone calls :
Qt.openUrlExternally("tel:%1".arg(phone)) ;
, where phone can be a string or variant containing the phone number to be called.
-
wrote on 15 Apr 2014, 08:02 last edited by
Thanks a lot! And sorry for my late response!