[PyQt] GraphicsView and Opengl

Tayfun Kayhan tayfun92_kayhan at yahoo.com
Sun Jan 22 11:47:38 GMT 2012


In case it helps, the example works properly on my system, Kubuntu 11.10, 64bit. You could also try running OpenGL examples that python-qt4-doc package provides. 

________________________________
 From: Peter Würtz <pwuertz at googlemail.com>
To: pyqt at riverbankcomputing.com 
Sent: Sunday, January 22, 2012 1:23 PM
Subject: [PyQt] GraphicsView and Opengl
 
Hi,

I'm having trouble using QGraphicsView on a QGLWidget. I'm getting a
white window and errors like this these:
QGLShader: could not create shader
Vertex shader for simpleShaderProg (MainVertexShader &
PositionOnlyVertexShader) failed to compile

This is an example application triggering the problem:
http://pastebin.com/R0aa8ejs

The 'same' program works flawlessly when using C++/Qt. I'm seeing the
exact behavior when using PySide instead of PyQt4 by the way. Is there
some special treatment required when using python + opengl?

My system is Ubuntu 11.10, opengl is provided by the nvidia driver.

Thanks in advance.
_______________________________________________
PyQt mailing list    PyQt at riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20120122/2b8ad74f/attachment.html>


More information about the PyQt mailing list