Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How do I enable/disable ANGLE?
Forum Updated to NodeBB v4.3 + New Features

How do I enable/disable ANGLE?

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 2 Posters 7.5k Views 1 Watching
  • 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.
  • O Offline
    O Offline
    ondrejandrej
    wrote on last edited by
    #1

    I have a Qt Quick-based app for Windows that should be released soon, but we realized that it fails to show the QML scene on one of the company computers. All other computers work fine.
    From what I found and read so far it seems that I should "use ANGLE" (http://qt-project.org/wiki/Qt-5-on-Windows-ANGLE-and-OpenGL). How can I enable/disable it in my program? How can I verify whether the program is using it?

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      do you build Qt from source?
      If not and you are using an official release (until Qt 5.3.x) it's marked with OpenGL in the name. It's an ANGLE build if not. Since Qt 5.4 all releases without OpenGL in the text have "dynamic loading":http://blog.qt.digia.com/blog/2014/11/27/qt-weekly-21-dynamic-opengl-implementation-loading-in-qt-5-4/.

      If you are using an OpenGL build make sure you have up-to-date graphics driver installed on the machine. And also that the machine has a graphics card which supports minimum OpenGL 3.0 (alternatively OpenGL 2.x with the framebuffer_object extension) or OpenGL ES 2.

      For the ANGLE builds you need to have at least DirectX 9 installed.

      If you are building Qt from source you need to specify if you want to use OpenGL or ANGLE at configure time. See "this":http://doc.qt.io/qt-5/configure-options.html#opengl-options-for-windows

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      0
      • O Offline
        O Offline
        ondrejandrej
        wrote on last edited by
        #3

        Thanks, that helps.

        1 Reply Last reply
        0
        • O Offline
          O Offline
          ondrejandrej
          wrote on last edited by
          #4

          It's really odd. I'm building against my own Qt (5.3.1) which was configured without -opengl parameter and with Widnows SDK installed. So it should be ANGLE version. The resulting app isn't working without d3dcompiler_*.dll, which also means that it's probably using ANGLE. However, it doesn't work in Windows Remote Desktop and on the single computer mentioned above.

          1 Reply Last reply
          0
          • raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            clear the ANGLE question by checking <path-to-qt-src-dir>\qtbase\config.summary
            Lookout for the line with "ANGLE" in it.

            Is the least DirectX 9 installed on the machine? Check by running DXDIAG command

            It may also helpful to see the output (warning, errors) the application creates there (console).

            Also see this "QTBUG":https://bugreports.qt.io/browse/QTBUG-36065 (and its related issues) which may lead to a clue.

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • O Offline
              O Offline
              ondrejandrej
              wrote on last edited by
              #6

              Thanks. Yeah, the config.summary contains
              @ANGLE...................yes@

              I'll have a look at the bug report later.

              1 Reply Last reply
              0
              • O Offline
                O Offline
                ondrejandrej
                wrote on last edited by
                #7

                dxdiag both over Remote desktop and on the broken machine shows DirectX 11.

                My application isn't printing anything relevant to console. I also added this code:
                @ connect(this, &QQuickWidget::sceneGraphError, [this](QQuickWindow::SceneGraphError reason, const QString &msg) {
                QMessageBox::critical(this, "Error", msg);
                });@
                and expected to get some error message on the computer with the broken graphics driver, but I get nothing.

                It looks like "QTBUG-36065":https://bugreports.qt.io/browse/QTBUG-36065 is still present in my case, although it's marked as fixed.

                I'd really like to show the user at least an error message when this happens.

                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