1234567891011121314151617181920212223242526272829 |
- #include "mainwindow.h"
- #include "ui_mainwindow.h"
- MainWindow::MainWindow(QWidget *parent)
- : QMainWindow(parent)
- , ui(new Ui::MainWindow)
- {
- ui->setupUi(this);
- //radarServer = new RadarServer(this, 1234);
- radarServerThread = new QThread(this);
- radarSigGenThread = new QThread(this);
- radarServer = new RadarServer();
- radarSigGen = new RadarSigGen();
- radarServer->moveToThread(radarServerThread);
- radarSigGen->moveToThread(radarSigGenThread);
- connect(radarServer,SIGNAL(SigRadarGen(int)),radarSigGen,SLOT(SlotRadarGen(int)));
- radarServerThread->start();
- radarSigGenThread->start();
- }
- MainWindow::~MainWindow()
- {
- delete ui;
- }
|