Forums

OverviewV-Play 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
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support