Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to make a phone call on android/ios mobiles using QML/Qt?

How to make a phone call on android/ios mobiles using QML/Qt?

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 3 Posters 5.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mike20120228
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • M Offline
        M Offline
        Mike20120228
        wrote on last edited by
        #3

        Thanks! I tested your methods on my Android phone, and all of them did not work.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cezmen
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mike20120228
            wrote on last edited by
            #5

            Thanks a lot! And sorry for my late response!

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved