Hello!

Sorry for my English in advance

I will have class "Graph" in the file "Graph.h". I want to have a widget which I can "Promote to ..." from Qt Designer, like in the picture:
279.png

Must I inherit QwtPlot and QWidget? How to show the plot?
Qt Code:
  1. #ifndef GRAPH_H
  2. #define GRAPH_H
  3.  
  4. #include <QWidget>
  5. #include <qwt_plot.h>
  6.  
  7. class Graph : public QWidget, QwtPlot
  8. {
  9. public:
  10. Graph()
  11. {
  12.  
  13. }
  14. };
  15.  
  16. #endif // GRAPH_H
To copy to clipboard, switch view to plain text mode