How to make a phone call on android/ios mobiles using QML/Qt?
-
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
-
Thanks! I tested your methods on my Android phone, and all of them did not work.
-
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.
-
Thanks a lot! And sorry for my late response!