[Qt-interest] qthread

Scott Aron Bloom Scott.Bloom at sabgroup.com
Fri Jun 19 23:23:19 CEST 2009


> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Nicola De Filippo
> Sent: Friday, June 19, 2009 2:16 PM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] qthread
> 
> Hi,
> i changed the main of localfortuneserver example (add while cicle):
> 
> #include <QApplication>
> #include <QtCore>
> 
> #include <stdlib.h>
> 
> #include "server.h"
> 
> int main(int argc, char *argv[])
> {
>     QApplication app(argc, argv);
>     Server server;
>     server.start();
>     qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
> 
>    // ADDED
> 
>      while(1)
> 	{
> 		qDebug() << "print";
> 	}
>     return app.exec();
> }
> 
> why now the server don't recevie clienti request?
> 
>             N.
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest

Because your application event loop isn't running




More information about the Qt-interest-old mailing list