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

QGLWidget causes lock up when window resizes/moves

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 4.8.6
    • 4.7.0
    • GUI: OpenGL
    • None
    • I'm on Windows Vista creating my applications with Qt Creator 2.0.
    • Qt 4: f18b03d543f66981e455b013df75fb0bcd2611cb, d86e651a6eb2382365295ec1b2b022b9f0a08f92

    Description

      I recently just got Qt 4.7 (from Qt 4.6.1). Ever since then any application that I create a QGLWidget for are causing that application to lock up whenever I move/resize the main window. When I resize, the mouse stays on the resize cursor. When I try to move the window it won't move. In both cases my machine locks up and I have to ctrl+alt+delete to get out of this state. I update my QGLWidget by creating a QTimer and connect the timeout() signal to the QGLWidget's updateGL() function.

      I simple default GUI project I created with Qt Creator 2.0 can reproduce this problem. See .cpp file for MainWindow below:

      MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
      {
      ui->setupUi(this);

      myTimer = new QTimer(this);

      myGlWidget = new QGLWidget(this);

      connect(myTimer, SIGNAL(timeout()), this, SLOT(updateRender()));

      myTimer->start(0);
      }

      void MainWindow::updateRender()
      {
      if(myGlWidget)

      { myGlWidget->updateGL(); }

      }

      As you can see in the example I'm using nothing but pure Qt Code. This works perfectly fine if I compile under the 4.6.1 SDK that I had before.

      Attachments

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              jmeb2206 Jacob Brandt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes