[Qt-interest] OpenGL and QGraphicsView problem
Oliver Demetz
forenbeitraege at oliverdemetz.de
Fri Jul 3 08:42:04 CEST 2009
Hi,
try reinstalling the driver of the graphics card.
I do not see problems in the given code.
Do other OpenGL apps run properly on the same machine?
Regards,
Oliver
M.Fujino schrieb:
> 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();
> }
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list