Examples not working loading the web content
Solved
QtWebEngine
-
Some of the examples using QtWebEngine does not work for me.
It seems like the web engine component is not loading properly.Some examples:
- WebEngine Widgets Maps Example:
1 warning: Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
does not load any content - quick nano browser (as the previous)
- etc.
Though for example the Map viewer works fine for the osm and every map other than "StreetMap".
Qt v.5.12.2 (same for v.5.15.2)
Ubuntu 22.04Thanks!
- WebEngine Widgets Maps Example:
-
So if anyone finds the same issue, the workaround can be found here: https://github.com/probonopd/linuxdeployqt/issues/554
I just put the line:
qputenv("QTWEBENGINE_CHROMIUM_FLAGS", "--disable-gpu --no-sandbox");And everything started to work.
-