-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathmainwindow.cpp
33 lines (29 loc) · 888 Bytes
/
mainwindow.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#include "mainwindow.h"
#include "areachart.h"
#include "datetimechart.h"
#include "dynamicchart.h"
#include "dynamicchartx.h"
#include "linechart.h"
#include "piechart.h"
#include "stackedbarchart.h"
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
{
setupUI();
}
MainWindow::~MainWindow() {}
void MainWindow::setupUI()
{
QGridLayout *layout = new QGridLayout;
layout->addWidget(new DynamicChart(this), 0, 0);
layout->addWidget(new DynamicChartX(this), 0, 1);
layout->addWidget(new AreaChart(this), 0, 2);
layout->addWidget(new DateTimeChart(this), 1, 0);
//layout->addWidget(new LineChart(this), 1, 0);
layout->addWidget(new StackedBarChart(this), 1, 1);
layout->addWidget(new PieChart(this), 1, 2);
QFrame *frame = new QFrame(this);
frame->setLayout(layout);
setCentralWidget(frame);
setMinimumSize(960, 600);
}