Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.6.2, 5.7.1, 5.8.0 Beta
-
None
-
macos 10.12
-
ff26fa899f095eff9b3265b462e97c7e48ab06f5 (5.6) dd80dd0e4efcdfcc33f71a4f964aa9d2d40c4af0 (5.7) 39f7ce19dbce34dfa7e730d6fa743d88109c3369(5.8)
Description
The second QWebEngineView window occurs "qt is not defined" error when you create second QWebEngineView and show it in WebPage::createWindow(WebWindowType type) function.
I guess related to https://bugreports.qt.io/browse/QTBUG-53411 and https://bugreports.qt.io/browse/QTBUG-54107.
5.6.2 does not effect.
Can reproduce by fix markdowneditor demo code as following:
bool PreviewPage::acceptNavigationRequest(const QUrl &url, QWebEnginePage::NavigationType /type/, bool /isMainFrame/) { // Only allow qrc:/index.html. if (url.scheme() == QString("qrc")) return true; QWebEngineView *v=new QWebEngineView(); PreviewPage *page = new PreviewPage(v); v->setPage(page); v->setUrl(QUrl("qrc:/index.html")); v->show(); //QDesktopServices::openUrl(url); return false; }
Attachments
For Gerrit Dashboard: QTBUG-56643 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
174986,7 | Copy web channel from QWebEnginePage when adopting WebContentsAdapter | 5.6 | qt/qtwebengine | Status: MERGED | +2 | 0 |