Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. [Solved] how to use QML or Qt to open a web URL using android's or IOS's native web browser
Forum Update on Monday, May 27th 2025

[Solved] how to use QML or Qt to open a web URL using android's or IOS's native web browser

Scheduled Pinned Locked Moved Qt WebKit
5 Posts 3 Posters 8.5k 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 web Url (or a related button) and then the SW immediately open a web browser like the native ones on android/IOS and show the content of this web Url.

    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,

      IIRC "QDesktopService::openUrl":http://qt-project.org/doc/qt-5/qdesktopservices.html#openUrl should do the job

      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
      1
      • M Offline
        M Offline
        Mike20120228
        wrote on last edited by
        #3

        Great! It works!

        Thanks a lot!

        BTW, do you know how to click on a phone number (or a related button) and the SW automatically make a phone call on android/ios mobiles?

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

          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
          • raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            i'm not sure exactly but for Android this module can be used to embedd a native webview into QML: "https://qt.gitorious.org/qt/qtwebview":https://qt.gitorious.org/qt/qtwebview

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            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