[PyKDE] Re: SIP bug with function parameters...???

Phil Thompson phil at riverbankcomputing.co.uk
Fri Mar 17 17:35:25 GMT 2006


On Friday 17 March 2006 5:24 pm, Torshyn Vitaly aka r0ot wrote:
> Hi! If you can help me please, HELP!
> I have errors like this:
> ...
> sipQtXmlQicsWidgetCellDisplay.cpp: In member function ‘void
> sipQicsWidgetCellDisplay::displayCell(QicsGrid*, int, int, const
> QicsDataItem*, const QRect&, QPainter*)’:
> sipQtXmlQicsWidgetCellDisplay.cpp:82: error: no matching function for call
> to ‘sipQicsWidgetCellDisplay::displayCell(QicsGrid*&, int&, int&,
> const QicsDataItem*&, const QRect&, QPainter*&)’
> /home/rx5/src/stable/include/QicsWidgetCellDisplay.h:45: note: candidates
> are: virtual void QicsWidgetCellDisplay::displayCell(QicsGrid*, int, int,
> const QicsDataItem*, QRect&, QPainter*) sipQtXmlQicsWidgetCellDisplay.cpp:
> In function ‘PyObject*
> meth_QicsWidgetCellDisplay_displayCell(PyObject*, PyObject*)’:
> sipQtXmlQicsWidgetCellDisplay.cpp:492: error: no matching function for call
> to ‘QicsWidgetCellDisplay::displayCell(QicsGrid*&, int&, int&, const
> QicsDataItem*&, const QRect&, QPainter*&)’
> /home/rx5/src/stable/include/QicsWidgetCellDisplay.h:45: note: candidates
> are: virtual void QicsWidgetCellDisplay::displayCell(QicsGrid*, int, int,
> const QicsDataItem*, QRect&, QPainter*)
> sipQtXmlQicsWidgetCellDisplay.cpp:492: error: no matching function for call
> to ‘QicsWidgetCellDisplay::displayCell(QicsGrid*&, int&, int&, const
> QicsDataItem*&, const QRect&, QPainter*&)’
> /home/rx5/src/stable/include/QicsWidgetCellDisplay.h:45: note: candidates
> are: virtual void QicsWidgetCellDisplay::displayCell(QicsGrid*, int, int,
> const QicsDataItem*, QRect&, QPainter*) ...
>
> All sip files i wrote correct. SIP generate code GOOD. But if i try to
> compile i look this messages. My sip file:
> ...
>  virtual void displayCell(QicsGrid *, int, int, const QicsDataItem *, const
> QRect &, QPainter *); ...
> My header file:
> ...
> virtual void displayCell(QicsGrid *, int row, int col, const QicsDataItem
> *itm, QRect &rect, QPainter *painter); ...
> And SIP generated file:
> ...
> void sipQicsWidgetCellDisplay::displayCell(QicsGrid *a0,int a1,int a2,const
> QicsDataItem *a3,const QRect& a4,QPainter *a5) {
>         extern void sipVH_QtXml_6(sip_gilstate_t,PyObject *,QicsGrid
> *,int,int,const QicsDataItem *,const QRect&,QPainter *
>
>         sip_gilstate_t sipGILState;
>         PyObject *meth;
>
>         meth =
> sipIsPyMethod(&sipGILState,&sipPyMethods[0],sipPySelf,NULL,sipNm_QtXml_disp
>layCell);
>
>         if (!meth)
>         {
>                 QicsWidgetCellDisplay::displayCell(a0,a1,a2,a3,a4,a5);
>                 return;
>         }
>
>         sipVH_QtXml_6(sipGILState,meth,a0,a1,a2,a3,a4,a5);
> }
> ...
> Im use gcc 4.0.0 (today i will try with gcc 3.4.x)

So what are the ‘ and ’ characters?

Phil




More information about the PyQt mailing list