[PyQt] Error in calling QSignalMapper.__bases__
Giuseppe Corbelli
giuseppe.corbelli at copanitalia.com
Tue Nov 9 10:41:05 GMT 2010
On 08/11/2010 20:23, Phil Thompson wrote:
> <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..
The workaround works :-)
Any idea where the problem may lie?
--
Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666104 Fax: +390302659932
E-mail: giuseppe.corbelli at copanitalia.com
More information about the PyQt
mailing list