[Qt-interest] Running Qt for Embedded Linux Applications
Sean Harmer
sean.harmer at maps-technology.com
Mon Aug 31 10:36:10 CEST 2009
Hi,
Wei Song wrote:
> Hi,
> I want to know the architecture of QTE application running as C/S
> modal.
> For example, firstly I run a QTE application with -qws option.
> And how and when creat the QWSServer, the QWSServer is inside the
> QTE application process or in a single process outside?
It is my understanding that it is part of your application process.
> If I run another QTE application with -qws option, it will connect
> the QWSServer of first QTE application?
You can only launch a single app at time with the -qws flag I think. The
first app acts as the server. Just launch the second app without the
-qws flag and it will connect to the first app's server.
> But if I kill the first QTE application, what about the second
> QTE application?
> I will lose the QWSServer from the first QTE application or creat
> a new QWSServer itself?
I think it will lose the server. Try it and find out.
If you need a QWS server to always be running but you wish to start/stop
your apps several times just make a trivial app that just creates a
QApplication and launch that with -qws. Launch all of your other apps as
normal. As long as you leave the original app running you will have a
QWS server to connect to.
HTH,
Sean
More information about the Qt-interest-old
mailing list