Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. qtwebengine + webgl does not work on some windows hardware
Forum Updated to NodeBB v4.3 + New Features

qtwebengine + webgl does not work on some windows hardware

Scheduled Pinned Locked Moved Solved QtWebEngine
2 Posts 1 Posters 2.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.
  • D Offline
    D Offline
    drmatt
    wrote on 15 Aug 2017, 18:39 last edited by drmatt
    #1

    Hello,

    We've run into a problem with viewing webgl via qtwebengine. With a small test application in Qt 5.9.1,

        QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL,true);
        QApplication app(argc,argv);
        auto webWidget = new QWebEngineView();
        webWidget->settings()->setAttribute(QWebEngineSettings::WebGLEnabled,true);
        webWidget->setUrl(QUrl("http://webglreport.com/"));
        webWidget->resize(1000,800);
        webWidget->show();
        return app.exec();
    

    the test page states that webgl is not available, and indeed pages with actual webgl content are not viewable. "× This browser supports WebGL 1, but it is disabled or unavailable."

    On a recent laptop with Intel HD P530, webgl sometimes works if --ignore-gpu-blacklist is provided on the command line. On a Surface Pro 3 with Intel HD 5000 graphics (our actual target device), it doesn't work at all. On both computers, viewing the same web page in Chrome browser works fine.

    We tried rebuilding qt with the patch described at the end of this thread, but observe the same behavior (except that 'opengl context cannot be shared' messages disappeared).

    We've also tried using different opengl versions (desktop, software, and gles) via

    QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL,true);
    

    No combination of flags seems to work. The issue also does not seem to be fixed in qt 5.10.0 alpha release. Can anybody provide assistance with this issue, or give us guidance as to how to track down what's going wrong?

    Thanks in advance.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      drmatt
      wrote on 17 Aug 2017, 23:13 last edited by
      #2

      For others who may have this problem: a rebuild of qt with the linked patch did finally work. In our case we also needed to run configure with the -opengl dynamic and -angle flags, making sure to completely remove all previous build and configuration data.

      1 Reply Last reply
      0

      1/2

      15 Aug 2017, 18:39

      • Login

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