Hi,

Any idea how to open link clicked in webview in browser application?
Code below does not do the trick - rather opens link inside the webview
itself...

http://doc.qt.io/qt-5/qml-qtwebkit-webview.html#onNavigationRequested-signal

WebView {

        id: webViewer

        anchors.fill: parent

        onNavigationRequested : {

            console.debug("request.url: ", request.url)

            if (request.navigationType === WebView.LinkClickedNavigation) {

                request.action = WebView.IgnoreRequest

                Qt.openUrlExternally(request.url)

            }

        }

    }


Thx,


Zoltan
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to