PDA

View Full Version : QT application with opengl drops xorg session



YuriyRusinov
7th June 2008, 14:05
Hello, colleagues !

I try to develop qt application with opengl support. I put QGLWidget subclass object onto QMainWindow. But sometimes on resize or exit event xorg user session is terminated and I drop on login manager.

Here is my glwidget realization.


#include "glwidget.h"

GLWidget :: GLWidget (QWidget *parent, Qt::WFlags f)
: QGLWidget (parent, 0, f)
{
}

GLWidget :: ~GLWidget (void)
{
}

void GLWidget :: initializeGL (void)
{
}

void GLWidget :: paintGL (void)
{
}

void GLWidget :: resizeGL (int width, int height)
{
}


My OS is Gentoo Linux 2008.0. Any ideas.

jacek
8th June 2008, 00:30
Check your OpenGL drivers.