Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtWebengine WebGL issue

QtWebengine WebGL issue

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 1 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Cobra91151C Offline
    Cobra91151C Offline
    Cobra91151
    wrote on last edited by Cobra91151
    #1

    Hello! I want to load the https://www.google.com/earth/ from my application. I have QApplication::setAttribute(Qt::AA_UseOpenGLES, true); in the main.cpp and set ...settings()->setAttribute(QWebEngineSettings::WebGLEnabled, true); to the QWebEngineView. The problem I get:

    0_1563445418250_2019-07-18_132327.png

    From Google Chrome:
    0_1563449283173_2019-07-18_142625.png

    From my app:
    0_1563449293582_2019-07-18_142746.png

    I have Nvidia Geforce GTX 680 (4 GB of VRAM) and use Qt 5.9.X. I think it should work on my device. How to enable it? Thanks.

    1 Reply Last reply
    0
    • Cobra91151C Offline
      Cobra91151C Offline
      Cobra91151
      wrote on last edited by Cobra91151
      #2

      I have tried setting these command line parameters to my application: --ignore-gpu-blacklist --enable-gpu-rasterization running 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 to QtWebEngineProcess process?

      1 Reply Last reply
      0
      • Cobra91151C Offline
        Cobra91151C Offline
        Cobra91151
        wrote on last edited by
        #3

        Is QtWebengine supports hardware acceleration and WebGL/WebGL2?

        1 Reply Last reply
        0
        • Cobra91151C Offline
          Cobra91151C Offline
          Cobra91151
          wrote on last edited by
          #4

          Hello!

          I fixed the WebGL/WebGL2 issue by upgrading to QtWebEngine 5.13.0. I contacted the Google support about Google Earth issue, because it is still not loading using QtWebEngine 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 Leaflet maps API instead of Google Earth. Now it works well. The issue is resolved.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved