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