Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

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.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded