#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; }