Qt World Summit: Register Today!

Opening an URL in external browser when newViewRequested signal emited

  • Hi, I Use WebEngineView QML Type to show a web page that have some link that need to open in a new tab.links are somethings like <a href="http://google.com" target="_blank">Go to google in new tab</a>.
    I am going to open url of newViewRequested siganl in external browser. but the WebEngineNewViewRequest has no url property that I use with Qt.openUrlExternally(request.url). WebEngineNewViewRequest has a private member QUrl m_requestedUrl that not accesible as property in qml.
    How can I handle the issue,get the URL and open it in an external browser.

Log in to reply