Hi! I need to subclass QCustomPlot so that I can implement a few of my own changes in replot()
function. When I try to do subclass it I get the following error: E2422 defaulted default constructor cannot be constexpr because the corresponding implicitly declared default constructor would not be constexpr from qmutex.h.
Any idea why is it coming up? My subclass is just basic:
// mycustomplot.h file #include "qcustomplot.h" class myCustomPlot : public QCustomPlot { public: myCustomPlot(QWidget *parent); ~myCustomPlot(); };
// mycustomplot.cpp file #include "mycustomplot.h" myCustomPlot::myCustomPlot(QWidget *parent) : QCustomPlot(parent) { }I am using QCustomPLot in Visual Studio 2019 with a 'Qt VS Tools' Extension.