[Qt-interest] OpenGL and QGraphicsView problem

M.Fujino nagisasaka at gmail.com
Thu Jul 2 17:58:12 CEST 2009


Hi all,

I have a chipset dependent problem about OpenGL and
QGraphicsView/Scene framework.

Following code runs successfully in most machines that I have, but it
failed only in Windows Vista on
Intel mobile GS45 chipset.

The error occurs on view.setViewport(new QGLWidget);

Event viewer said that it failed in the "ig4dev32.dll". The exception
code is 0x0000005 or 0x8000003, it
depends on the dll version.

I use LGPL Qt 4.5 , and I compiled the code with Visual Studio 2005.

Have you got any insights ?

Thanks a lot in advance.

--
Nagisa


#include <QApplication>
#include <QGLWidget>
#include <QtGUI>
#include <iostream>

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);

	if (!QGLFormat::hasOpenGL()){
		qFatal("Abort");
	}

	QGraphicsScene scene;
	QGraphicsView view(&scene);
	std::cout << "1" << std::endl;
	view.setViewport(new QGLWidget); // fatal error occurs in
C:\windows\system32\ig4dev32.dll
	std::cout << "2" << std::endl;
	view.show();

	return a.exec();
}



More information about the Qt-interest-old mailing list