Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 1 Support › External web links?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6292

    Mathias

    Hey.

    I am trying to add an external link to a button that would open in the device browser.

    My code is something like this:

     Image {
                id: web
                source: "img/menu/web.png"
                MouseArea{
                    anchors.fill: parent
                    onClicked: {
                                  Qt.openUrlExternally("http://myexternalurl.com/");
                    }
                  }
                }
            }

     

    It works fine while on desktop but, and opens the link in the browser, but while testing on my Android device my button does nothing. Is there another way to implement external web links in v-play so it works on Android (and iOS).

    Thanx

    #6294

    Alex
    Felgo Team

    Absolutely, please use the provided nativeUtils.openUrl() method (which is basically a wrapper around Qt.openUrl) instead.

    Best,

    Alex

    #6297

    Mathias

    Thanx, it’s working now. 🙂

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.