GauiStori / PyQt-Qwt

Python PyQt wrapper for Qwt6
Other
53 stars 18 forks source link

added magnifier #11

Closed rizzoa closed 3 years ago

rizzoa commented 4 years ago

Hi @GauiStori , I have added the magnifier option.

GauiStori commented 3 years ago

Hi Alfio

Thanks for the fixes and sorry for a terribly late response.

I have merged your changes into the magnifier branch and added a reference to you into the project but then I found out that a pull request would add you to the Contributors list so I will try to respond to this one.

I could not make the following files compile: qwt_plot_spectrocurve.sip
qwt_plot_tradingcurve.sip

I get the following errors:

$PyQt-Qwt/Qwt/sipQwtQwtPlotSpectroCurve.cpp: In member function "virtual size_t sipQwtPlotSpectroCurve::dataSize() const": $PyQt-Qwt/Qwt/sipQwtQwtPlotSpectroCurve.cpp:168:49: error: "size_t QwtSeriesStore::dataSize() const [with T = QwtPoint3D; size_t = long unsigned int]" is inaccessible within this context 168 | return ::QwtPlotSpectroCurve::dataSize(); In file included from /usr/include/qwt/qwt_plot_seriesitem.h:17, from /usr/include/qwt/qwt_plot_spectrocurve.h:14, from /home/gudjon/project_git/github/PyQt-Qwt/sip/qwt_plot_spectrocurve.sip:18: /usr/include/qwt/qwt_series_store.h:174:8: note: declared here 174 | size_t QwtSeriesStore::dataSize() const

But without the these files the library works like charm.

Regards Gudjon

rizzoa commented 3 years ago

HI @GauiStori , yes indeed it is long time... :-) Actually I made also other changes which I have still to push in my Fork, and I never did it...I have actually converted almost all the C++ example to Python but with qt5 version. When I have some time I will go to this project again. I remember that I can compile bith sip files, but maybe there should be other changes to merge. BR Alfio