QWebEngineView not working after upgrade form Qt 6.5.3 to Qt 6.8.3
-
Hi all,
I've recently upgraded my application from Qt 6.5.3 to Qt 6.8.3
and now my usage of QWebEngineView isn't working as expected.
My app is mostly C++, and while primary platform is Win, it also runs on Mac and Linux.I'm using QWebEngineView to load a webpage within a tabBar in my application.
The usage is pretty basic,
A simplified example is below.QWebEngineView* view = new QWebEngineView; view->setUrl(QUrl(QStringLiteral("https://www.qt.io"))); myTabWidget->addTab(view, "Tab Title text");
Interestingly, the same code works on both Mac and Linux to load the same webpage,
so it looks like windows is the problem platform.I've connected QWebEngineView::loadStarted and QWebEngineView::loadFinished
signals, and they are both being triggered.I've tried making a basic Qt sample app using the same webpage, and the page in question
loads and displays correctly. So It looks like a problem within my usage.
However given it works on Mac and Linux I'm at a bit of a loss to figure out why?I've also tried doing the following elsewhere in my app and it displays the dialog,
but not the contents of the webpage.QWebEngineView* view = new QWebEngineView; view->setUrl(QUrl(QStringLiteral("https://www.qt.io"))); view->resize(1024, 750); view->show();
Is it maybe related to some library not being included?
I am explicitly including all the required DLL's for my app, and not using them from the system dir.
I have tried dumping ALL the dll into the application.exe dir, but that doesn't work.
I've used Depends to look for any missing DLL's but that shows no problems.Any help or suggestions of how to further debug things would be great?
Cheers,
James -
OK fixed it.
I was not updating the additional resource files when packaging my application.
eg. qtwebengine_.pak, vcontext.bin, and the icudtl.dat file. -