Sorry, I forgot to confirm my subscription before cc to pyside list
from google group.


---------- Forwarded message ----------
From:  <pyside-ow...@lists.pyside.org>
Date: Tue, Sep 6, 2011 at 1:14 AM
Subject: Re: [PySide] binding qwt-6.0.1 with shiboken, got stuck on
template class...
To: epau...@gmail.com


You are not allowed to post to this mailing list, and your message has
been automatically rejected.  If you think that your messages are
being rejected in error, contact the mailing list owner at
pyside-ow...@lists.pyside.org.



---------- Forwarded message ----------
From: "Yinhm ." <epau...@gmail.com>
To: pys...@googlegroups.com
Date: Mon, 5 Sep 2011 10:14:03 -0700 (PDT)
Subject: Re: [PySide] binding qwt-6.0.1 with shiboken, got stuck on
template class...


hi, all

I just forked https://github.com/grissiom/pysideqwt and pushed my changes.
I got build 100% pass, but not the test results due to C++ templates.
Here is my fork: https://github.com/yinhm/pysideqwt
It based on Qwt 6.1.0-svn.

I have the same question with Grissiom, here is the build log related
to templates:

{{{
Resolving typedefs...                        [OK]
Fixing class inheritance...                  [WARNING]
class not found for setup inheritance 'QGraphicsObject'
template baseclass 'QwtPlotSeriesItem<QwtIntervalSample>' of
'QwtPlotIntervalCurve' is not known
class 'QGraphicsWidget' inherits from unknown base class 'QGraphicsObject'
template baseclass 'QwtSeriesData<QPointF>' of 'QwtCPointerData' is not known
class 'QGraphicsTextItem' inherits from unknown base class 'QGraphicsObject'
template baseclass 'QwtArraySeriesData<QwtSetSample>' of
'QwtSetSeriesData' is not known
template baseclass 'QwtArraySeriesData<QPointF>' of
'QwtPointSeriesData' is not known
template baseclass 'QwtArraySeriesData<QwtPoint3D>' of
'QwtPoint3DSeriesData' is not known
template baseclass 'QwtPlotSeriesItem<QPointF>' of 'QwtPlotCurve' is not known
template baseclass 'QwtSeriesData<QPointF>' of 'QwtPointArrayData' is not known
template baseclass 'QwtPlotSeriesItem<QwtIntervalSample>' of
'QwtPlotHistogram' is not known
template baseclass 'QwtSeriesData<QPointF>' of 'QwtSyntheticPointData'
is not known
template baseclass 'QwtArraySeriesData<QwtOHLCSample>' of
'QwtTradingChartData' is not known
template baseclass 'QwtPlotSeriesItem<QwtPoint3D>' of
'QwtPlotSpectroCurve' is not known
template baseclass 'QwtArraySeriesData<QwtIntervalSample>' of
'QwtIntervalSeriesData' is not known
}}}

For example, The QwtPlotCurve definition:
  class QWT_EXPORT QwtPlotCurve: public QwtPlotSeriesItem<QPointF>
QwtPlotSeriesItem which is the class using template:

  class QWT_EXPORT QwtPlotAbstractSeriesItem: public QwtPlotItem

  template <typename T>
  class QwtPlotSeriesItem: public QwtPlotAbstractSeriesItem

And the QwtPlotItem:
  class QWT_EXPORT QwtPlotItem: public QwtLegendItemManager

CTest failed due to some method in QwtPlotItem did exposed to QwtPlotCurve:
{{{
1: ERROR: testQwt (__main__.QwtTest)
1: Test case for qwtplot class from qwt module.
1: ----------------------------------------------------------------------
1: Traceback (most recent call last):
1:   File "/home/josh/quant/qwt/pysideqwt/tests/qwt_test.py", line 32,
in testQwt
1:     curve.attach(plot)
1: AttributeError: 'PySideQwt.QwtPlotCurve' object has no attribute 'attach'
}}}

So, my question is, what should I do to make attach method available
in QwtPlotCurve or
how do I convert C++ template to shiboken definitions.



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

Reply via email to