[Qt-interest] QT console QTcpServer application

Louis Hoefler louis.hoefler at gmx.de
Tue Oct 11 16:19:16 CEST 2011


Am 11.10.2011 16:07, schrieb Thiago Macieira:
> Hello Louis
>
> There's really not enough information in your email for us to give you any
> hints. We don't know what you did wrong so we have no idea what to advise for
> you to improve.
>

Ah I solved the problem myselfe though.
I just need to create a new QCoreApplication object and use a.exec().

int main(int argc, char *argv[]) {
//Creating the QTcpServer and connecting signals...
QCoreApplication a(argc, argv);
return a.exec();
}

This will run the application without quit,
and process signals over and over again, am I correct?
Greetings, Louis



More information about the Qt-interest-old mailing list