2116 |
paro |
1 |
#include <QApplication> |
|
|
2 |
#include <QPushButton> |
|
|
3 |
#include <QVBoxLayout> |
|
|
4 |
|
|
|
5 |
#include "scope.h" |
|
|
6 |
|
|
|
7 |
class Window : public QWidget |
|
|
8 |
{ |
|
|
9 |
public: |
|
|
10 |
Window(QWidget *parent = 0); |
|
|
11 |
}; |
|
|
12 |
|
|
|
13 |
Window::Window(QWidget *parent) |
|
|
14 |
: QWidget(parent) |
|
|
15 |
{ |
|
|
16 |
Scope *scope = new Scope; |
|
|
17 |
|
|
|
18 |
QVBoxLayout *layout = new QVBoxLayout; |
|
|
19 |
layout->addWidget(scope); |
|
|
20 |
setLayout(layout); |
|
|
21 |
} |
|
|
22 |
|
|
|
23 |
|
|
|
24 |
int main(int argc, char *argv[]) |
|
|
25 |
{ |
|
|
26 |
QApplication app(argc, argv); |
|
|
27 |
Window window; |
|
|
28 |
window.setGeometry(1200, 200, 570, 390); |
|
|
29 |
window.show(); |
|
|
30 |
return app.exec(); |
|
|
31 |
} |