I think you can't attach curves in the constructor of your own QwtPlot

Suggestions:
- don't attach curves in the constructor
- don't replot in the contructor
- your QwtPlot constructor has to call QwtPlot constructor: Graph::Graph(...., QWidget *parent) : QwtPlot(parent)
- I think you need a QLayoutXXX to attach your plot to your QDialog

regards