Hello all,

I would like to ask you how to crate a qwt plot which will appear in an already implemented dialog box (see below the code). The problem is i dont know anything about qwt and i dont know how to start. I read the documentation but not so big help for me. The one axis will be a time period (days of a month) and the other one will have only 2 values 0 or 1. Could you please show me an example?

thank you in advance!

Qt Code:
  1. #include <QtGui/QWidget>
  2. #include <QSqlQuery>
  3. #include <QString>
  4. #include "Product.h"
  5. #include "creatnewclient.h"
  6.  
  7.  
  8.  
  9. Product::Product(QWidget *parent, Qt::WFlags flags)
  10. : QDialog(parent, flags)
  11. {
  12. ui.setupUi(this);
  13.  
  14. this->setWindowState(Qt::WindowFullScreen);
  15.  
  16. connect(ui.CreateNewClient, SIGNAL( clicked() ), this, SLOT( creatnewclient() ) ) ;
  17. }
  18.  
  19. Product::~Product()
  20. {
  21.  
  22. }
  23. void Product::creatnewclient()
  24. {
  25. CreatNewClient dlg;
  26. dlg.exec();
  27. }
To copy to clipboard, switch view to plain text mode