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. Open any link in the same window
Qt 6.11 is out! See what's new in the release blog

Open any link in the same window

Scheduled Pinned Locked Moved Unsolved QtWebEngine
2 Posts 1 Posters 904 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.
  • Z Offline
    Z Offline
    zura
    wrote on last edited by zura
    #1

    Hi,

    Is it possible to open any link in the same window? Maybe to intercept link handling and perform WebEnginePage::OpenLinkInThisWindow action? (Equivalent of right clicking the link and choosing "Follow the link").

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zura
      wrote on last edited by
      #2

      Also, it is possible to derive from QWebEngineView and override QWebEngineView* createWindow(QWebEnginePage::WebWindowType type) returning this, but this loses the history, i.e. user can't navigate Back.

      1 Reply Last reply
      0

      • Login

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