2019-09-03 20:32:54 +08:00
|
|
|
|
#include "mainwindow.h"
|
2019-09-03 19:45:01 +08:00
|
|
|
|
#include "ui_mainwindow.h"
|
|
|
|
|
|
2019-09-03 20:32:54 +08:00
|
|
|
|
#include <test10millionpeerclientprotocol.h>
|
|
|
|
|
|
2019-09-03 19:45:01 +08:00
|
|
|
|
MainWindow::MainWindow(QWidget *parent) :
|
|
|
|
|
QMainWindow(parent),
|
|
|
|
|
ui(new Ui::MainWindow)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
2019-09-03 20:32:54 +08:00
|
|
|
|
connect(this, SIGNAL(signalStartTest()),
|
|
|
|
|
this, SLOT(slotOnStarting()), Qt::QueuedConnection);
|
2019-09-03 19:45:01 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MainWindow::~MainWindow()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
|
|
|
|
}
|
2019-09-03 20:32:54 +08:00
|
|
|
|
|
|
|
|
|
void MainWindow::on_pushButton_clicked()
|
|
|
|
|
{
|
|
|
|
|
emit signalStartTest();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void MainWindow::slotOnStarting()
|
|
|
|
|
{
|
|
|
|
|
Test10millionPeerClientProtocol* p0;
|
|
|
|
|
QQtTcpClient* r4;
|
|
|
|
|
Test10millionPeerClientInstance(p0, this);
|
|
|
|
|
}
|