2108 |
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 |
// QPushButton *ReadDataBut = new QPushButton(tr("Read data")); |
|
|
19 |
// connect(ReadDataBut, SIGNAL(clicked()), scope, SLOT(getData())); |
|
|
20 |
|
|
|
21 |
QVBoxLayout *layout = new QVBoxLayout; |
|
|
22 |
layout->addWidget(scope); |
|
|
23 |
// layout->addWidget(ReadDataBut); |
|
|
24 |
setLayout(layout); |
|
|
25 |
|
|
|
26 |
} |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
int main(int argc, char *argv[]) |
|
|
30 |
{ |
|
|
31 |
QApplication app(argc, argv); |
|
|
32 |
Window window; |
|
|
33 |
window.setGeometry(800, 200, 560, 690); |
|
|
34 |
window.show(); |
|
|
35 |
return app.exec(); |
|
|
36 |
} |