This commit is contained in:
ackimixs
2024-04-11 15:53:27 +02:00
parent 0fdd01cbe9
commit bcbc644fcf

View File

@@ -111,6 +111,9 @@ MainWindow::MainWindow(const char *address, int port, QWidget *parent) : QMainWi
});
this->inGame = new InGame(centralWidget);
connect(this->inGame, &InGame::askTCPServer, [&](const std::string& message) {
this->tcpClient->sendMessage(message);
});
this->stackedWidget = new QStackedWidget(centralWidget);
this->stackedWidget->addWidget(this->home);