#ifndef DIALOGSCENCE1_H
|
#define DIALOGSCENCE1_H
|
|
#include <QDialog>
|
#include <QtCharts/QChart>
|
#include <QtCharts/QBarSeries>
|
#include <QtCharts/QBarSet>
|
#include <QtCharts/QChartView>
|
#include <QDateTime>
|
|
using namespace QtCharts;
|
|
namespace Ui {
|
class DialogScence1;
|
}
|
|
class DialogScence1 : public QDialog
|
{
|
Q_OBJECT
|
|
public:
|
explicit DialogScence1(QWidget *parent = nullptr);
|
~DialogScence1();
|
int bfull =0;
|
QSize oldsize;
|
int flag = 1;
|
int nPos=0;
|
void InitDisplay();
|
void keyPressEvent(QKeyEvent *event) Q_DECL_OVERRIDE;
|
void ShowParams();
|
|
void setChartAttribute(QChart *chart, QString title);
|
QChart * CreateBarChart();
|
QChart * createHorBarChart();
|
QChart * createPieChart();
|
QChart * createAreaChart();
|
QChart * createLineChart();
|
QChart * createSpLineChart();
|
QChart * createScatterChart();
|
void myDraw(QWidget * widget);
|
|
protected:
|
void paintEvent(QPaintEvent *event) Q_DECL_OVERRIDE;
|
bool eventFilter(QObject *, QEvent *) Q_DECL_OVERRIDE;
|
private slots:
|
void timerProc();
|
|
private:
|
Ui::DialogScence1 *ui;
|
};
|
|
#endif // DIALOGSCENCE1_H
|