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

Windows: Desktop OpenGL: render() not called when window shrinking in size

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.1.1
    • 5.1.0 RC1
    • GUI: OpenGL
    • None
    • Running on Windows 7. Installation is from qt-windows-opensource-5.1.0-rc2-mingw48_opengl-x86-offline
    • 49a55be9730bb30f36ba0e031717cc1f709ddd20

    Description

      The version is 5.1.0 RC2, but that can't be selected from the Affects Version/s drop down list!

      This short test program uses the openglwindow.h in examples/gui/openglwindow/openglwindow.h:

      #include <QtGui>
      #include "openglwindow.h"
      #include <QPainter>
      #include <iostream>

      class OpenGLFail : public OpenGLWindow
      {
      public:
      OpenGLFail();

      protected:
      void render(QPainter *p);
      };

      OpenGLFail::OpenGLFail()
      {
      setTitle("OpenGL Test");
      resize(500, 800);
      }

      void OpenGLFail::render(QPainter *p)
      {
      std::cout << "width(): " << width()
      << " height(): " << height() << endl;
      std::cout.flush();
      }

      int main(int argc, char *argv[])
      {
      QGuiApplication app(argc, argv);

      OpenGLFail test_window;

      test_window.show();

      app.exec();
      }

      As can be seen in the Application Output screen in QtCreator, the width and height do not display as the test window is reduced in size. This test program works fine in Qt 5.0.2

      Attachments

        1. angle_shrink_wmpaint.stack
          4 kB
        2. openglerror.zip
          3 kB
        3. qtbug32121_angle.log
          0.9 kB
        4. qtbug32121_diag.patch
          2 kB
        5. qtbug32121_examples_diag.patch
          4 kB
        6. qtbug32121_opengl.log
          1 kB
        7. qtbug32121.tar
          20 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-32121
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              mrak Mark Novak
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes