Disregard my previous post, cookies policy can be set in the QWebEngineProfile owned by the QWebEnginePage owned by the QWebEngineView, like this: ui->webView->page()->profile()->setPersistentCookiesPolicy(QWebEngineProfile::NoPersistentCookies);
The page pointer remains the same for my purposes, at least.
Below is the one I tried. Now the link opens in a new window.
But how do I make it open in a new tab.
I checked the link which was provided in the previous code. But as beginner, it's too much for me to understand.