Results 1 to 2 of 2

Thread: qtservice based on threaded fortune server

  1. #1
    Join Date
    Apr 2011
    Location
    Hyderabad, India
    Posts
    25
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default qtservice based on threaded fortune server

    Hi,

    I hve re-implemented 'threaded fortune server' example in Qt documentation as an interactive Qt service. Interactive bcause i want to show the user the same dialog box so that he can figure out port no. for fortune client example.

    but how to stop the service when someone clicks on the 'Quit' button. As the 'Quit' button is connected to close() slot, the box goes out but i want the service also to be stopped when pressing on 'Quit' button. Is it possible?

  2. #2
    Join Date
    Jan 2010
    Posts
    9
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: qtservice based on threaded fortune server

    connect(widget, SIGNAL(quit()),
    qApp, SLOT(quit()));

    where qApp = http://doc.qt.nokia.com/latest/qapplication.html#qApp

  3. The following user says thank you to Farris for this useful post:

    raj_iv (27th May 2011)

Similar Threads

  1. QtService & QtSql
    By acedanans in forum Qt Programming
    Replies: 11
    Last Post: 3rd October 2014, 12:30
  2. Problem in execution of QtService
    By nikhilqt in forum Qt Programming
    Replies: 7
    Last Post: 5th March 2011, 12:23
  3. QtService Library (dll) for windows
    By ruben.rodrigues in forum Installation and Deployment
    Replies: 1
    Last Post: 22nd October 2010, 19:18
  4. QtService fails to start
    By a550ee in forum Qt Programming
    Replies: 1
    Last Post: 9th November 2006, 13:34
  5. QtService and GAC loadable dll
    By stevey in forum Qt Programming
    Replies: 3
    Last Post: 17th July 2006, 03:39

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.