Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QWebEngineView crashes on view->page() or view->load(url)



  • I'm trying to get a simple project going with QtWebEngine using Qt 5.6.0 beta. Problem is, it crashes on me before I can do much of anything.

    _view = new QWebEngineView(parentWidget);
    QWebEnginePage *pageTest = _view->page(); // CRASH
    _view->load( url ); // CRASH

    Either of the two lines above cause a crash. If you want more details on where the crash is happening, see my full post here:

    http://stackoverflow.com/questions/35354581/qwebengineview-crashes-on-load-or-page-method

    Am I missing something? I used to create a QWebView in a similar way, and it worked just fine. I've followed the porting guide and the docs here show 3 lines of setup code similar to my own.

    Help?!

    -Vern



  • I found that I was missing several files that, if not present, will cause the app to crash when QWebEngine is used:

    qtwebengine_resources.pak
    qtwebengine_resources_100p
    qtwebengine_resources_200p.pak.pak
    QtWebEngineProcess.exe
    icudtl.dat

    If I use the windeployqt.exe tool, it properly places these files with my exe.


Log in to reply