Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Creating Windows Services (Nt Services) using Qt
Forum Updated to NodeBB v4.3 + New Features

[Solved] Creating Windows Services (Nt Services) using Qt

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 10.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Davita
    wrote on last edited by
    #1

    Hi

    I'm looking for a way to create Windows services using Qt. I searched the net but couldn't find a way. Doesn't Qt provide a standard way of doing this, or should go go the old Winapi way? I found that there was a class QtService, but for an unknown reason for me, it is no longer avaliable in latest Qt package. Any help would be appreciated.
    Thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      There is no standard way to achieve this. You can use Qt to create the application, but there is no cross platform API in Qt to install a service (Windows), launch daemon/agent (Mac) or the equivalent on a Linux/Unix system.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • C Offline
        C Offline
        ckakman
        wrote on last edited by
        #3

        You can use the Service solution:
        Solution archive: http://qt.nokia.com/products/qt-addons/solutions-archive/
        Code: http://qt.gitorious.org/qt-solutions

        1 Reply Last reply
        0
        • D Offline
          D Offline
          Davita
          wrote on last edited by
          #4

          Thanks ckakman, you saved me many hours of work :)

          1 Reply Last reply
          0
          • C Offline
            C Offline
            ckakman
            wrote on last edited by
            #5

            You're welcome.

            1 Reply Last reply
            0
            • H Offline
              H Offline
              hrompato
              wrote on last edited by
              #6

              Davita,
              Have you had success with services?
              I can obtain only an "Error 3" ("The system can not find the path", or something)

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved