2110 |
paro |
1 |
// qscope, Roman Pavelka, 2011 |
|
|
2 |
|
2108 |
paro |
3 |
#include <QApplication> |
|
|
4 |
#include <QPushButton> |
|
|
5 |
#include <QVBoxLayout> |
|
|
6 |
|
|
|
7 |
#include "scope.h" |
|
|
8 |
|
|
|
9 |
class Window : public QWidget |
|
|
10 |
{ |
|
|
11 |
public: |
|
|
12 |
Window(QWidget *parent = 0); |
|
|
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; |
2115 |
paro |
30 |
window.setGeometry(500, 200, 460, 760); |
2108 |
paro |
31 |
window.show(); |
|
|
32 |
return app.exec(); |
|
|
33 |
} |