[PyQt] PyQwt and SIP-4.12.1
Gerard Vermeulen
gav451 at gmail.com
Thu Jan 27 15:28:48 GMT 2011
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: qwt_text.sip
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20110127/f2033751/attachment.ksh>
More information about the PyQt
mailing list