QtWebengine WebGL issue
-
Hello! I want to load the https://www.google.com/earth/ from my application. I have
QApplication::setAttribute(Qt::AA_UseOpenGLES, true);in themain.cppand set...settings()->setAttribute(QWebEngineSettings::WebGLEnabled, true);to theQWebEngineView. The problem I get:
From Google Chrome:

From my app:

I have
Nvidia Geforce GTX 680 (4 GB of VRAM)and useQt 5.9.X. I think it should work on my device. How to enable it? Thanks. -
I have tried setting these command line parameters to my application:
--ignore-gpu-blacklist --enable-gpu-rasterizationrunning from console: https://forum.qt.io/topic/82360/problem-with-qt-webengine-hardware-acceleration/2 but it still the same. How should I set them properly toQtWebEngineProcessprocess? -
Is
QtWebenginesupports hardware acceleration andWebGL/WebGL2? -
Hello!
I fixed the
WebGL/WebGL2issue by upgrading toQtWebEngine 5.13.0. I contacted theGooglesupport aboutGoogle Earthissue, because it is still not loading usingQtWebEngine 5.13.0. The answer was:Google Earth is exclusively built-in to the Google Chrome and does not support other browsers. Also, there is a Google Earth Beta version which supports other browsers but it is still in Beta branch, so may contain bugs or other issues.
So, I decided to use
Leafletmaps API instead ofGoogle Earth. Now it works well. The issue is resolved.