@@ -0,0 +1,20 | |||
|
1 | #------------------------------------------------- | |
|
2 | # | |
|
3 | # Project created by QtCreator 2013-12-27T19:23:51 | |
|
4 | # | |
|
5 | #------------------------------------------------- | |
|
6 | ||
|
7 | QT += core gui | |
|
8 | ||
|
9 | greaterThan(QT_MAJOR_VERSION, 4): QT += widgets | |
|
10 | ||
|
11 | TARGET = PeripheralWidget | |
|
12 | TEMPLATE = app | |
|
13 | ||
|
14 | ||
|
15 | SOURCES += main.cpp\ | |
|
16 | mainwindow.cpp \ | |
|
17 | peripheralwidget.cpp | |
|
18 | ||
|
19 | HEADERS += mainwindow.h \ | |
|
20 | peripheralwidget.h |
@@ -0,0 +1,11 | |||
|
1 | #include "mainwindow.h" | |
|
2 | #include <QApplication> | |
|
3 | ||
|
4 | int main(int argc, char *argv[]) | |
|
5 | { | |
|
6 | QApplication a(argc, argv); | |
|
7 | MainWindow w; | |
|
8 | w.show(); | |
|
9 | ||
|
10 | return a.exec(); | |
|
11 | } |
@@ -0,0 +1,11 | |||
|
1 | #include "mainwindow.h" | |
|
2 | ||
|
3 | MainWindow::MainWindow(QWidget *parent) | |
|
4 | : QMainWindow(parent) | |
|
5 | { | |
|
6 | } | |
|
7 | ||
|
8 | MainWindow::~MainWindow() | |
|
9 | { | |
|
10 | ||
|
11 | } |
@@ -0,0 +1,15 | |||
|
1 | #ifndef MAINWINDOW_H | |
|
2 | #define MAINWINDOW_H | |
|
3 | ||
|
4 | #include <QMainWindow> | |
|
5 | ||
|
6 | class MainWindow : public QMainWindow | |
|
7 | { | |
|
8 | Q_OBJECT | |
|
9 | ||
|
10 | public: | |
|
11 | MainWindow(QWidget *parent = 0); | |
|
12 | ~MainWindow(); | |
|
13 | }; | |
|
14 | ||
|
15 | #endif // MAINWINDOW_H |
@@ -0,0 +1,6 | |||
|
1 | #include "peripheralwidget.h" | |
|
2 | ||
|
3 | peripheralWidget::peripheralWidget(QWidget *parent) : | |
|
4 | QGroupBox(parent) | |
|
5 | { | |
|
6 | } |
@@ -0,0 +1,20 | |||
|
1 | #ifndef PERIPHERALWIDGET_H | |
|
2 | #define PERIPHERALWIDGET_H | |
|
3 | ||
|
4 | #include <QWidget> | |
|
5 | #include <QGroupBox> | |
|
6 | #include <QVBoxLayout> | |
|
7 | ||
|
8 | class peripheralWidget : public QGroupBox | |
|
9 | { | |
|
10 | Q_OBJECT | |
|
11 | public: | |
|
12 | explicit peripheralWidget(QWidget *parent = 0); | |
|
13 | ||
|
14 | signals: | |
|
15 | ||
|
16 | public slots: | |
|
17 | ||
|
18 | }; | |
|
19 | ||
|
20 | #endif // PERIPHERALWIDGET_H |
General Comments 0
You need to be logged in to leave comments.
Login now