[PyQt] Problem with snapshot and OpenGL

Phil Thompson phil at riverbankcomputing.com
Wed Feb 3 22:34:20 GMT 2010


On Wed, 3 Feb 2010 14:02:45 -0700, Brian Brown <rbb at techgame.net> wrote:
> Here you go:
> 
> Downloads/demangle% c++filt
> __ZN20QGLFramebufferObject15blitFramebufferEPS_RK5QRectS0_S3_mm
> 
> 	QGLFramebufferObject::blitFramebuffer(QGLFramebufferObject*, QRect
const&,
> 	QGLFramebufferObject*, QRect const&, unsigned long, unsigned long)
> 
> 
> Downloads/demangle% c++filt
> __ZN20QGLFramebufferObject15blitFramebufferEPS_RK5QRectS0_S3_jj
> 
> 	QGLFramebufferObject::blitFramebuffer(QGLFramebufferObject*, QRect
const&,
> 	QGLFramebufferObject*, QRect const&, unsigned int, unsigned int)
> 
> Thanks to Shane and finding that command :)

That implies that Qt is being built with GLenum and GLbitfield defined as
unsigned long, but PyQt is being built as them defined as unsigned int.

gl.h on my (32 bit) Mac defines them as being unsigned int. (I'd be
surprised if it was any different on a 64 bit Mac.) What about your Mac?

Phil


More information about the PyQt mailing list