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 nothing happens. In both cases my machine locks up and I have to ctrl+alt+delete to get out of this state. I tested the sample example below with Qt 4.6.1 that I had before and this works without any problems so it's something new with Qt 4.7. Any help would be greatly appreciated. Thanks!
MainWindow
::MainWindow(QWidget *parent
) : ui(new Ui::MainWindow)
{
ui->setupUi(this);
connect(myTimer, SIGNAL(timeout()), this, SLOT(updateRender()));
myTimer->start(0);
}
void MainWindow::updateRender()
{
if(myGlWidget)
{
myGlWidget->updateGL();
}
}
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();
}
}
To copy to clipboard, switch view to plain text mode
Bookmarks