[PyKDE] Python Qwt

Gerard Vermeulen gerard.vermeulen at grenoble.cnrs.fr
Fri May 19 17:12:41 BST 2006


On Fri, 19 May 2006 17:02:27 +0100
Phil Thompson <phil at riverbankcomputing.co.uk> wrote:

> On Friday 19 May 2006 4:08 pm, Gudjon I. Gudjonsson wrote:
> > Hi
> >
> > I was trying to compile PyQwt with the new snapshots and got the following
> > error that I don't understand
> > /usr/bin/sip -t WS_X11 -t Qt_3_3_6 -x  -x Qt_STYLE_WINDOWSXP -x
> > Qt_STYLE_INTERLACE -x VendorID -c
> > build/temp.linux-x86_64-2.3/sip/qwt -I /usr/share/sip/qt sip/qwtmod.sip
> > sip: QwtPlot::titleLabel() has overloaded functions with the same Python
> > signature
> > error: command '/usr/bin/sip' failed with exit status 1
> >
> > Does anyone know where PyQwt 5.0 can be found. I would like to start using
> > PyQt 4.1 but I need PyQwt that compiles with it.
> 
> This is due to a recent SIP change in detecting more unreachable methods. 
> However, thinking about it, this may have been too aggressive. In the 
> following...
> 
>     void foo(char);
>     void foo(char *);
> 
> ...foo("a") potentially matches both and will call the first. foo("bb") will 
> match the second. If the above were in the reverse order then foo(char) would 
> never get called.
> 
> I think I'll back out this particular change.
> 
In this case it is because of:

    QLabel* titleLabel();
    // signature: const QLabel* titleLabel() const;

PyQwt-4.2.1 comments out the second declaration, while PyQwt-4.2 doesn't

Gerard




More information about the PyQt mailing list