0

I have WebEngineView:

WebEngineView {
    anchors.fill: parent
}

If I open, e.g. Google search page, and click on the links, nothing happens. But if I click right mouse button and select "follow link", the link is opened. How can I make QtWebEngine follow links on click? Also I need to open a new app instance if link's target="_blank"

KolesnichenkoDS
  • 530
  • 1
  • 6
  • 20

1 Answers1

0

I think you are missing createWindow function of QWebEngineView , it's a virtual protected function of the form :

QWebEngineView* createWindow(QWebEnginePage::WebWindowType type)

For more info you can visit createWindow qt5.8 doc and you can also see the example code of simple browser here simple browser qt .

Hope it helps ! Happy coding !

Anmol Gautam
  • 949
  • 1
  • 12
  • 27