Qt World Summit: Register Today!

To QtService or not to QtService?

  • Hello,

    I need to implement a program that will run on both Windows and Linux machines, and that acts as some kind server or service/daemon: the program will listen for incoming XML messages, will process these messages and perform certain actions depending on what XML message it received, and will send XML responses.

    Now I came across the QtService class at https://github.com/qtproject/qt-solutions/tree/master/qtservice and I am wondering what to do, with my options probably being:

    1. Write the program without using QtService.
    2. Use QtService and make it a real service (on Windows) or daemon (on Linux).

    However, it is not completely clear to me why I should us QtService (or why not...)
    What extra benefits does it give me if I decide to write the program using the QtService? What are the typical use-cases? Are there any disadvantages for using it too?

    And also, from the documentation for the 2.0 version at https://github.com/qtproject/qt-solutions/blob/master/qtservice/README.TXT I read "Reimplemented for Qt 4 with improved API."
    Our codebase already uses Qt 5.15.1. Is QtService working with Qt 5.15.X?

Log in to reply