[PyQt] Error in calling QSignalMapper.__bases__

Phil Thompson phil at riverbankcomputing.com
Mon Nov 8 19:23:59 GMT 2010


On Mon, 08 Nov 2010 19:13:59 +0100, Giuseppe Corbelli
<giuseppe.corbelli at copanitalia.com> wrote:
> Debian Linux 2.6
> Python 2.6.6 (r266:84292, Oct  9 2010, 11:40:09) [GCC 4.4.5]
> Qt 4.7.0~rc1-1 (Debian package, experimental repo)
> PyQt 4.8.1 (last release, compiled from source)
> 
> When I try to execute this:
> 
> from PyQt4 import QtCore
> 
> QtCore.QObject.__bases__
> (<type 'sip.wrapper'>,)
> 
> QtCore.QSignalMapper.__bases__
> 
> TypeError
> Traceback (most recent call last)
> /home/cowo/<ipython console> in <module>()
> TypeError: C++ type 'QWidget*' is not supported as a native Qt signal
type
> 
> This error did NOT occur with Qt 4.6 and PyQt 4.7.7.

The problem is unique to QSignalMapper. The workaround is to import QtGui.

Thanks,
Phil


More information about the PyQt mailing list