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. Qt 5.10.0 to 5.12.1 upgrade introduces problems in OpenGL displays
Forum Update on Tuesday, May 27th 2025

Qt 5.10.0 to 5.12.1 upgrade introduces problems in OpenGL displays

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 2 Posters 1.2k Views 3 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.
  • JMO_GSJ Offline
    JMO_GSJ Offline
    JMO_GS
    wrote on last edited by
    #1

    I've long had two different Open GL displays that I use in my Qt application which have worked quite well through many Qt version upgrades.

    Recently I upgraded from 5.10.0 to 5.12.1 and suddenly I am encountering problems with both displays I am wondering if there have been some sort of architectural changes - either to Qt's implementation of OpenGL or to Qt displays in general -- between 5.10.0 and 5.12.1 that might explain these and if someone can can suggest an area to investigate.

    The first display draws a 3d surface map.

    class GLAdapterWidget : public QGLWidget
    

    It loads a heightmap and uses OpenGL to render it. But after the upgrades to 5.12.1, once the heightmap is loaded, it still does not drawl will not draw the surface. The display appears black. Until I click the mouse somewhere within its borders. Then it appears perfectly.

    (I was able to at least track this down to a problem with the widget attribute Qt::WA_Mapped . Until I click within the widget, that attribute is not set. Once I do, Qt sets it and it draw. I have no idea why or what this means.)

    The second display just shows an image:

    class VideoDisplay : public QOpenGLWidget, 
                         protected QOpenGLFunctions_3_3_Core
    

    This one seems to show up well until I choose another display and then come back to it. At that point, it appears black and nothing can make it redraw

    I realize that's not a lot to go on. This code so sold and large and well established that posting all of it would probably mostly cloud the issue.

    What I'm hoping is that someone can identify any particular changes which might be a culprit here and give me some general guidance as to what to do or how to work around either of these?

    Thanks

    1 Reply Last reply
    1
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What OS are you running ?
      Can you check whether you have the same issue with 5.12.0 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • JMO_GSJ Offline
        JMO_GSJ Offline
        JMO_GS
        wrote on last edited by
        #3

        Hi,

        Thank you for replying. It actually takes a while for me to integrate any version of Qt into our build so I was unable to test with 5.12.0 until now.

        The answers to your questions are:

        • I am running Windows 10 with all the latest updates.
        • Yes the problem happens with 5.12.0 also so whatever changes made this happen came with or before that version

        Thanks,
        -Joe

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Then I would check with 5.11, just to be sure.

          Is it still working with 5.10 ? If you had a graphics card driver update, it might also break stuff.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • JMO_GSJ Offline
            JMO_GSJ Offline
            JMO_GS
            wrote on last edited by
            #5

            It still works with 5.10.0. We had to go back to that.

            I can download and try 5.11. But If I find it does or does not, what would that mean?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              That there's a regression that started with that version.

              You may want to check the bug report system to see if there's anything related.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              JMO_GSJ 1 Reply Last reply
              1
              • SGaistS SGaist

                That there's a regression that started with that version.

                You may want to check the bug report system to see if there's anything related.

                JMO_GSJ Offline
                JMO_GSJ Offline
                JMO_GS
                wrote on last edited by
                #7

                @SGaist I haven't been able to go to 5.11 because, as I mentioned, getting Qt into our particular build system is something of a task. But I am still going to try it. In the meantime, I was pointed to this reported bug which sounds somewhat similar...

                https://bugreports.qt.io/browse/QTBUG-72668

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Good finding !

                  Then you should add a comment to the report with your informations.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  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