How to create a Windows Service in C++/QT?

17,589

Solution 1

In the Qt Solutions Archive you can find the QtService project including examples.

The QtService component is useful for developing Windows services and Unix daemons.

The component is not maintained anymore but it should still work. The license is BSD-3-Clause.

Solution 2

I used the solution from this tutorial https://www.youtube.com/watch?v=qDH7zWYaScA and works very well on Windows 7 and Windows 10. I used QtService.

You have to include in .pro file:

include(..\qt-solutions-master\qtservice\src\qtservice.pri)
Share:
17,589
Admin
Author by

Admin

Updated on July 05, 2022

Comments

  • Admin
    Admin almost 2 years

    I want to create a Windows Service that simply records the screen and sends the recorded file to a server. But whenever I search Google for Windows Service creation I always get .NET results. How can I make a simple service on anything else but .NET? I will figure out the rest. I prefer Qt or C++ but I can't find anything for them.