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. QOpenGLWidget problems
Forum Updated to NodeBB v4.3 + New Features

QOpenGLWidget problems

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 2.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.
  • E Offline
    E Offline
    epalmero
    wrote on last edited by
    #1

    Dear All:

    I am trying to update to version 5.4 and I have a couple of queston. I begin to use the "QOpenGLWidget" replacing the all QGLWidget and I got into some issues that I did not find before.

    Before my application was running all fine but now I got the following error:

    "program is not valid in the current context"

    when I detach and attach a QDockingWidget that inside contain the "QOpenGLWidget". Moreover before I use to call the updateGL to force the update of the widget when I change a property for example when I update a texture and now this does not seem to be there anymore. I try to use the regular update but this really does not update all the time. As far as I know there is no possibility to call directly the paintGL functions is there any other solution?

    Thanks a lot

    1 Reply Last reply
    0
    • S Offline
      S Offline
      stvokr
      wrote on last edited by
      #2

      Hi,

      I have a similar problem. I use a tabbed widget with different opengl widgets in the tabs, which are closable. With QGLWidget all works fine. Now with QOpenGLWidget it often happens, that closing a tab and showing the next opengl context stops painting this opengl content. I found out that the paintGL() function is still called and the scene is rendered as well. Even interaction is possible, but the view seem to be frozen. Just a resize of the window starts painting the opengl content again.
      Before I used updateGL() and this worked w/o problems. Now with update() this problem occurs.

      Perhaps a bug?

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

        Hi,

        If you can reproduce that with a minimal example then it's likely a bug. You should also take a look at the "bug report system":http://bugreports.qt.io to see if it's something known

        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
        • N Offline
          N Offline
          Neil G
          wrote on last edited by
          #4

          I am having the same problem. I had a QGLWidget in a QAbstractScrollArea. Everything was fine. With QOpenGLWidget, calls to update do not result in calls to paintGL despite all of these being true: isVisible(), updatesEnabled(), isEnabled().

          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