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. Should I build with OpenGL (desktop/dynamic) or not?

Should I build with OpenGL (desktop/dynamic) or not?

Scheduled Pinned Locked Moved Solved QtWebEngine
3 Posts 3 Posters 1.5k 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.
  • G Offline
    G Offline
    gencer
    wrote on 27 Sept 2018, 15:46 last edited by gencer
    #1

    I built from source using -opengl desktop. However, I got some Q_UNREACHABLE error. This code was working on 5.10.1 x86. However, current version that I compiled v5.11.2 cannot open it.

    My main target is WebEngine. I needed WebEngine x86 binaries for VC2017.

    If I set;

    QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
    

    then it just works. However, I do not needed this code in earlier versions. So my question is, what option should I use while building QT myself?

    1. -opengl desktop (current)
    2. -opengl dynamic
    3. -no-opengl

    What is the Qt's default choice?

    Error:
    0_1538062752860_bcbaf123-bf64-4a01-893d-9a6f6ec1228f-image.png

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gencer
      wrote on 27 Sept 2018, 16:02 last edited by
      #2

      I found that:

      OpenGL Options for Windows
      On Windows, Qt can be configured with the system OpenGL or with ANGLE. By default, Qt is configured to use dynamic OpenGL. This means that it tries to use system OpenGL and falls back to ANGLE, which is bundled with Qt and depends on the DirectX SDK, if native OpenGL does not work. ANGLE enables running Qt applications that depend on OpenGL, without installing the latest OpenGL drivers. If ANGLE also fails, Qt will fall back to software rendering, which is the slowest but most safe of the rendering methods.

      I will try with dynamic.

      Y 1 Reply Last reply 28 Apr 2020, 13:26
      0
      • G gencer
        27 Sept 2018, 16:02

        I found that:

        OpenGL Options for Windows
        On Windows, Qt can be configured with the system OpenGL or with ANGLE. By default, Qt is configured to use dynamic OpenGL. This means that it tries to use system OpenGL and falls back to ANGLE, which is bundled with Qt and depends on the DirectX SDK, if native OpenGL does not work. ANGLE enables running Qt applications that depend on OpenGL, without installing the latest OpenGL drivers. If ANGLE also fails, Qt will fall back to software rendering, which is the slowest but most safe of the rendering methods.

        I will try with dynamic.

        Y Offline
        Y Offline
        yanghang
        wrote on 28 Apr 2020, 13:26 last edited by
        #3

        @gencer I also met this problem. but it not fall back to software opengl, it show black screen.

        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