[PyQt] PyQwt and SIP-4.12.1
Phil Thompson
phil at riverbankcomputing.com
Fri Jan 28 11:22:06 GMT 2011
On Thu, 27 Jan 2011 16:28:48 +0100, Gerard Vermeulen <gav451 at gmail.com>
wrote:
> Hi,
>
> The following works with sip-4.12 (python compiled in my home
directory):
>
> Python 2.6.6 (r266:84292, Jan 8 2011, 16:35:06)
> [GCC 4.4.4] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import PyQt4.Qwt5 as qwt
>>>> import sip
>>>> sip.SIP_VERSION_STR
> '4.12'
>>>> qwt.QwtText(Qt.QString("wow"))
> <PyQt4.Qwt5.Qwt.QwtText object at 0x216cb90>
>>>>
>
> but not with sip-4.12.1 (python in Gentoo system):
> Python 2.6.6 (r266:84292, Dec 30 2010, 09:16:49)
> [GCC 4.4.4] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import PyQt4.Qwt5 as qwt
>>>> import sip
>>>> sip.SIP_VERSION_STR
> '4.12.1'
>>>> qwt.QwtText(Qt.QString("wow"))
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: QwtText(): arguments did not match any overloaded call:
> overload 1: argument 1 has unexpected type 'QString'
> overload 2: argument 1 has unexpected type 'QString'
>>>>
>
>
> The relevant part of the sip file for QwtText is attached.
>
> Best regards -- Gerard
Can you provide I self contained test case that demonstrates the problem
(I can't)?
Phil
More information about the PyQt
mailing list