[PyQt] HelloGL example

Phil Thompson phil at riverbankcomputing.co.uk
Wed Aug 8 16:32:35 BST 2007

On Wednesday 08 August 2007 4:05 pm, Lieven Buts wrote:
> In the Python version of the "opengl/hellogl" example, the
> signals from the OpenGL widget to the sliders do not appear
> to work on my (Ubuntu 7.04, Qt 4.3.0, SIP 4.7, PyQt 4.3)
> installation. The connections are made by code like this:
> self.connect(self.glWidget, QtCore.SIGNAL("xRotationChanged"),
>              slider, QtCore.SLOT("setValue(int)"))
> and the signals are emitted by
> self.emit(QtCore.SIGNAL("xRotationChanged"), angle)
> The C++ version of the demo works fine on the same system.
> Any ideas?

Change all "xRotationChanged" to "xRotationChanged(int)" and do the same for y 
and z. 6 changes in all.


More information about the PyQt mailing list