Trolltech Home | Qt-solutions Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-solutions Archive, September 2006
Problem with an interactive QtService


Message 1 in thread

Hello,

I have previously posted this to the qt-interest list, but as the problem is related to the QtService solution I'll try to post
again here.

My config : windows xp, qt4.1.4, qtservice2.2.

The service is successfully started at boot and works fine.
When a user opens a windows session (locally on the computer) the service is still running.
But when the user logs out, the service is killed !!!

Note that my service has a gui ( which is not shown by default ). This gui is created/displayed in response
to custom service commands.

This anormal behaviour can easily be reproduced using the interactive service example included in the Qt service solution.

What I need is a way to leave the service alive independently of users login/logout, as any other service.

Any help appreciated.

Fabien.
__________________________________________________________________________________
Fabien Dachicourt - dev@xxxxxxxxxxx - www.spaceyes.com



--
 [ signature omitted ] 

Message 2 in thread

Does it help to call

qApp->setQuitOnLastWindowClosed(false);

in your start() implementation?

Volker


"Fabien" <dev@xxxxxxxxxxx> wrote in message 
news:eetnlg$qvn$1@xxxxxxxxxxxxxxxxxxxxx
> Hello,
>
> I have previously posted this to the qt-interest list, but as the 
> problem is related to the QtService solution I'll try to post
> again here.
>
> My config : windows xp, qt4.1.4, qtservice2.2.
>
> The service is successfully started at boot and works fine.
> When a user opens a windows session (locally on the computer) the 
> service is still running.
> But when the user logs out, the service is killed !!!
>
> Note that my service has a gui ( which is not shown by default ). This 
> gui is created/displayed in response
> to custom service commands.
>
> This anormal behaviour can easily be reproduced using the interactive 
> service example included in the Qt service solution.
>
> What I need is a way to leave the service alive independently of users 
> login/logout, as any other service.
>
> Any help appreciated.
>
> Fabien.
> __________________________________________________________________________________
> Fabien Dachicourt - dev@xxxxxxxxxxx - www.spaceyes.com
>
>
> 


--
 [ signature omitted ]