-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmenu.cpp
More file actions
36 lines (34 loc) · 975 Bytes
/
menu.cpp
File metadata and controls
36 lines (34 loc) · 975 Bytes
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
34
35
36
#include "menu.h"
#include <QPushButton>
#include <QFont>
#include <switchbutton.h>
/*
* menu widget
* sub widget:
* system option
* measured data
* history(data)
* Already modified:
* function button and its font
* window title
*/
Menu::Menu(QWidget *parent) : BaseWidget(parent)
{
setWindowTitle("Menu");
functionName->setText("OutDoors Advertisement Safety Detector");
QFont buttonFont;
buttonFont.setPixelSize(20);
buttonFont.setFamily("Microsoft YaHei");
QPushButton *systemOption = new QPushButton("System Option", this);
systemOption->setFont(buttonFont);
systemOption->setGeometry(200, 300, 200, 100);
QPushButton *measuredData = new QPushButton("Measured Data", this);
measuredData->setFont(buttonFont);
measuredData->setGeometry(200, 500, 200, 100);
QPushButton *history = new QPushButton("History", this);
history->setFont(buttonFont);
history->setGeometry(200, 700, 200, 100);
}
Menu::~Menu()
{
}