Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67466

macOS: QOpenGLWindow does not refresh

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.10.1
    • GUI: OpenGL
    • None
    • macOS 10.13
    • macOS

    Description

      Given the following code, where GLWindow directly inherits from QOpenGLWindow : 

       

      GLWindow::GLWindow()
      {
        QSurfaceFormat f;
        f.setProfile(QSurfaceFormat::CoreProfile);
        f.setVersion(4, 1);
        f.setSwapInterval(1);
        setFormat(f);
      
        connect(this, &GLWindow::frameSwapped,
                this, [=] { requestUpdate(); update(); std::cerr << "update called" << "\n"; });
      }
      
      void GLWindow::paintGL()
      {
         std::cerr << "paint called" << "\n";
         update();
      }

       

      I only have painting whenever I resize the GLWindow or put it in background then foreground.

      By default nothing moves and update / paint is not called. This works fine on linux with the same Qt version.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sletta Gunnar Sletta
            jcelerier Jean-Michaël Celerier
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes