Beispiel #1
0
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    ChatClient w;
    w.show();
    return a.exec();
}
Beispiel #2
0
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();
}