On Wed, Sep 14, 2011 at 1:10 AM, Hugo Parente Lima
<[email protected]> wrote:
> On Tuesday 13 September 2011 11:31:28 yinhm wrote:
>> Can I bind these instantiation without patching qwt?
>
> You can put the typedefs on your global header, the header you use to include
> all headers of classes that you will bind.
>

I'v been thinking about that, but wasn't sure is this gonna work.
I'll try.

>> There are still problems of the binding of template instantiations.
>> Seems apiextractor can not detect parent class methods for template
>> instantiations.
>>
>> eg: QwtPlotCurve has no method name: attach(QwtPlot *), I have to add
>> it manually.
>
> QwtPlot is a template class? if so, I guess Marcelo fixed this problem some
> days/weeks ago.
>

QwtPlot isn't a templates class, QwtPlotCurve is.

{{{
class QWT_EXPORT QwtPlotCurve: public QwtPlotSeriesItem<QPointF>
}}}

QwtPlotSeriesItem is a template class.

{{{

class QWT_EXPORT QwtPlotAbstractSeriesItem: public QwtPlotItem

...

template <typename T>
class QwtPlotSeriesItem: public QwtPlotAbstractSeriesItem
{
...
}}}



{{{
class QWT_EXPORT QwtPlotItem: public QwtLegendItemManager
{
...
    void attach( QwtPlot *plot );
    void detach();
....
}}}

For the python binding class of QwtPlotCurve, there is no such
methods such as attach, itemChanged, setTitle, etc inherited from
QwtPlotAbstractSeriesItem and QwtPlotItem.

-- 
Regards,
twitter:@yinhm
有微码头:http://yinhm.appspot.com
github: https://github.com/yinhm
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to