int main(int argc, char *argv[]) { QApplication a(argc, argv); ChatClient w; w.show(); return a.exec(); }
int main(int argc, char *argv[]) { QApplication a(argc, argv); quint16 port = 5432; ChatServer server; server.listen(QHostAddress::Any, port); ChatClient client; client.show(); return a.exec(); }