<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div><div>Hi list<br><br></div>I have been writing a python wrapper to the qwt6 library. It is new code, doesn't <br></div>build on PyQwt5.<br><br>Qwt library:<br><a href="http://qwt.sourceforge.net/">http://qwt.sourceforge.net/</a><br><br></div>My python wrapper:<br><a href="https://github.com/GauiStori/PyQt-Qwt">https://github.com/GauiStori/PyQt-Qwt</a><br><br></div>I do have a problem with pure virtual functions in Qwt. My solution is to <br></div>provide a default implementation for these functions but I really don't like<br></div>adding a patch to the Qwt library.<br><br></div>The patch looks like this:<br>--- a/src/qwt_series_data.h<br>+++ b/src/qwt_series_data.h<br>@@ -54,14 +54,14 @@<br>     virtual ~QwtSeriesData();<br> <br>     //! \return Number of samples<br>-    virtual size_t size() const = 0;<br>+    virtual size_t size() const {return 0;};<br> <br>     /*!<br>       Return a sample<br>       \param i Index<br>       \return Sample at position i<br>      */<br>-    virtual T sample( size_t i ) const = 0;<br>+    virtual T sample( size_t i ) const {return T();};<br> <br>     /*!<br>        Calculate the bounding rect of all samples<br><br></div>Is anyone willing to help me with this?<br><br></div>Another problem is getting the Qt include dir into the configure.py script.<br></div>I have to admit that I don't understand how it is done in the QScintilla script.<br></div>Can anyone point me to another example?<br><br></div>Regards<br></div>Gudjon<br><br></div>