In your derived class, you need a constructor that take a QWidget pointer argument. This constructor needs to call with the QwtPlot constructor with the same pointer. Something like

Qt Code:
  1. plot::plot(QWidget* parent) : QwtPlot(parent) {
  2.  
  3. }
To copy to clipboard, switch view to plain text mode