Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. Opening an URL in external browser when newViewRequested signal emited
Forum Updated to NodeBB v4.3 + New Features

Opening an URL in external browser when newViewRequested signal emited

Scheduled Pinned Locked Moved Unsolved QtWebEngine
1 Posts 1 Posters 650 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mostafa88
    wrote on 28 Feb 2017, 09:33 last edited by
    #1

    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.
    Thanks.

    Changing one parameter cannot fix totallity of system. Do small move at once.

    1 Reply Last reply
    1

    1/1

    28 Feb 2017, 09:33

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved