0,0 → 1,36 |
#include <QApplication> |
#include <QPushButton> |
#include <QVBoxLayout> |
|
#include "scope.h" |
|
class Window : public QWidget |
{ |
public: |
Window(QWidget *parent = 0); |
}; |
|
Window::Window(QWidget *parent) |
: QWidget(parent) |
{ |
Scope *scope = new Scope; |
|
// QPushButton *ReadDataBut = new QPushButton(tr("Read data")); |
// connect(ReadDataBut, SIGNAL(clicked()), scope, SLOT(getData())); |
|
QVBoxLayout *layout = new QVBoxLayout; |
layout->addWidget(scope); |
// layout->addWidget(ReadDataBut); |
setLayout(layout); |
|
} |
|
|
int main(int argc, char *argv[]) |
{ |
QApplication app(argc, argv); |
Window window; |
window.setGeometry(800, 200, 560, 690); |
window.show(); |
return app.exec(); |
} |