Hey,

>> Have you tried starting a QThread and having Wt inside that thread? If
>> you want to combine Qt and Wt signals and slots, you may want to read
>> http://web.archive.org/web/20070703100120/http://scottcollins.net/articles/a-deeper-look-at-signals-and-slots.html
>
> All I've tried now is to read and understand the example :) I'll try
> to do what you've suggested now.
>
> Another question is: how do I start Wt inside that thread? I don't
> have argc and argv available there.

To spawn and run a Wt server from inside a Qt application, I suggest
to use the new WServer API:

http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WServer.html

You do not need to spawn a separate Qt thread, since Wt will spawn its
own threads, and run in the background. You can thus call start() and
stop() from within the Qt event loop.

Also, you do not need the argc/argv; yust pass 0/0 if you do not want
to configure the server that way, but, currently there is only support
for command-line or config-file based configuration.

Regards,
koen

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to