I updated the Qwt version from 5.2.3 to 6.1.6 and the Plot Grid and Plot Background are not visible anymore in the plot.
I have classes that reimplements the draw method:
class PlotGrid : public QwtPlotGrid
To copy to clipboard, switch view to plain text mode
and
class PlotBackground : public QwtPlotShapeItem
class PlotBackground : public QwtPlotShapeItem
To copy to clipboard, switch view to plain text mode
.
The implementation is working with Qwt 5.2.3 and Qt 4.8.2 and updated the Qwt to 6.1.6 and Qt 5.15.2 and the plot grid and plot background are not shown anymore in the plot panel.
I already added the libraries needed qwtd.dll, qwt.dll, Qt5Core.dll, Qt5Cored.dll, Qt5Gui.dll, Qt5Guid.dll, Qt5Widgets.dll and Qt5Widgetsd.dll.
I added a break point in the draw method and it does not trigger the break points in VS2019. Testing my old Qt and Qwt version in VS2008 will trigger the break point in the draw method.
The only difference in the code is that I inherit the PlotGrid class to QwtPlotGrid instead of QwtPlotItem
Regards,
olredi
Bookmarks