<div dir="ltr"><div>Hi list<br><br></div>I have been writing a new python wrapper for the Qwt library [1,2]<br><div><div>And I still have problems with virtual function definitions.<br></div><div>I got the advice to add the /Abstract/ keyword to the class definitions</div><div>and this has led to the full wrapper compiling but running with the</div><div>following error messages:</div><div><br></div><div>NotImplementedError: QwtPlotHistogram.dataSize() is abstract and must be overridden<br>TypeError: Qwt.QwtPlotMultiBarChart represents a C++ abstract class and cannot be instantiated<br></div><div><br></div><div>I have also been playing with setting virtual functions = 0 or not. This led to a missing</div><div>symbols error but with the /Abstract/ keyword in the right place this error has disappeared.</div><div><br></div>There is a patch for the Qwt c++ library on Github that instantiates the pure virtual functions<div>and by using that patch my python wrapper works perfectly but the wrapper must work</div><div>without the patch.</div><div><br></div><br><div>Regards</div><div>Gudjon<br></div><div><pre>Ps. I got the advice earlier to use template functions in the sip files.<br></pre><pre>I would very much prefer to get the wrapper working without any patches to Qwt<br></pre><pre>first and then change to template classes and functions.<br></pre><div><br></div><pre>[1] Qwt library:
<a href="http://qwt.sourceforge.net/">http://qwt.sourceforge.net/</a>
[2] My python wrapper:
<a href="https://github.com/GauiStori/PyQt-Qwt">https://github.com/GauiStori/PyQt-Qwt</a>
<br>[3] <a href="https://riverbankcomputing.com/pipermail/pyqt/2017-January/038480.html">https://riverbankcomputing.com/pipermail/pyqt/2017-January/038480.html</a></pre><div><br></div></div></div></div>